rename docker image 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 load command rename image

docker image tag server:latest myname/server:latest

Example 3: rename a running docker container

$ sudo docker rename discourse_app disc_app

Example 4: docker load command rename image

docker image tag d583c3ac45fd myname/server:latest

Example 5: update docker image name

docker rename | Docker Documentation