Rename Container

Hi

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!

Jubilee.

There’s ‘docker rename’ now : https://docs.docker.com/reference/commandline/cli/#rename

1 Like

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