ScanSkill

docker rename

docker rename is a simple command, you can use to rename a container. Also, you may use docker container rename command.

Syntax

$ docker rename OLD_NAME NEW_NAME
# OR alternatively,
$ docker container rename CONTAINER NEW_IMAGE

Example

$ docker rename cloudyfox cloudyfoxapp

Here, the old container name cloudyfox changes into a new name cloudyfoxapp.