Docker Community Forums

Share and learn in the Docker community.

Rename Container

(Celk) #1


How do I rename a existing container?

(Sven Dowideit) #2

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

(Jubilee Makanjuola) #3

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!


(Mauricio Scheffer) #4

There’s ‘docker rename’ now :

(Keshan) #5

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