rename docker container code example
Example 1: how to rename a docker container
/*it does not restart the container */
docker container rename [old name] [new name]
Example 2: docker tag
docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
Example 3: rename a running docker container
$ sudo docker rename discourse_app disc_app
Example 4: docker rename image tag
docker image tag server:latest myname/server:latest