docker rename
is a simple command, you can use to rename a container. Also, you may use docker container rename
command.
$ docker rename OLD_NAME NEW_NAME
# OR alternatively,
$ docker container rename CONTAINER NEW_IMAGE
$ docker rename cloudyfox cloudyfoxapp
Here, the old container name cloudyfox
changes into a new name cloudyfoxapp
.