重命名 Docker 存储库
Rename Docker repository
我需要更改 Docker 存储库的名称。例如...
原文:
[root@docker ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
registry.access.redhat.com/rhel7/rhel latest e64297b706b7 2 weeks ago 201MB
重命名:
[root@docker ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
rhel 7.5 e64297b706b7 2 weeks ago 201MB
您没有'rename' 图片。您在 docker images
中看到的是标签。您可以添加新标签或删除标签,但不能 'rename'。尝试使用您想要的新标签标记您的图像,然后(可选)删除旧标签,例如:
docker tag registry.access.redhat.com/rhel7/rhel:latest rhel:7.5
docker rmi registry.access.redhat.com/rhel7/rhel:latest # remove old tag
我需要更改 Docker 存储库的名称。例如...
原文:
[root@docker ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
registry.access.redhat.com/rhel7/rhel latest e64297b706b7 2 weeks ago 201MB
重命名:
[root@docker ~]# docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
rhel 7.5 e64297b706b7 2 weeks ago 201MB
您没有'rename' 图片。您在 docker images
中看到的是标签。您可以添加新标签或删除标签,但不能 'rename'。尝试使用您想要的新标签标记您的图像,然后(可选)删除旧标签,例如:
docker tag registry.access.redhat.com/rhel7/rhel:latest rhel:7.5
docker rmi registry.access.redhat.com/rhel7/rhel:latest # remove old tag