如图:
[root@localhost nginx]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
89e246af3571 About a minute ago 880 MB
docker.io/ubuntu latest 7698f282e524 3 months ago 69.9 MB
docker.io/centos latest 9f38484d220f 5 months ago 202 MB
docker.io/registry latest f32a97de94e1 5 months ago 25.8 MB
解决:
docker tag 89e246af3571 rojer:nginxV0.0.1
docker tag 语法:
[root@localhost nginx]# docker tag --help
Usage: docker tag SOURCE_IMAGE[:TAG] TARGET_IMAGE[:TAG]
Create a tag TARGET_IMAGE that refers to SOURCE_IMAGE
Options:
--help Print usage