使用docker tag命令來重命名鏡像名稱,先執行help,查看如何使用以下java
mjduan@mjduandeMacBook-Pro:~/Docker % docker tag --help Usage: docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG] Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE Options:
重命名java,以下docker
mjduan@mjduandeMacBook-Pro:~/Docker % docker tag daocloud.io/library/java:8u40-b22 java:8