Rename Container


How do I rename a existing container?

container names are immutable at the moment. I recal seeing a Proposal on GitHub, but I don’t know what the status is.

Hi celk,

You can rename your existing container by running: docker commit container_id new-name

For example, docker commit 1b1f921c680b jmakanjuola/super_image

I hope this helps!


There’s ‘docker rename’ now :

1 Like

I think this renames the image not the container. doesn’t it?