Docker image rename: Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE, and remove the SOURCE_IMAGE image.
Usage:
docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
1. List docker images
➜ ~ docker images
2. Create a tag docker image
➜ ~ docker tag ccc6e87d482b u-lnmp
➜ ~ docker images
3. Remove docker source image
➜ ~ docker rmi ubuntu
Untagged: ubuntu:latest
Untagged: ubuntu@sha256:8d31dad0c58f552e890d68bbfb735588b6b820a46e459672d96e585871acc110
4. List docker images
➜ ~ docker images