这里写自定义目录标题
- Docker 常见问题
-
- 1、denied: requested access to the resource is denied
Docker 常见问题
1、denied: requested access to the resource is denied
解决:使用tag对镜像重新打标签,然后再push到仓库中
我的docker hub仓库是:[docker hub ID]/[repositories]
17754017059/docker_images
需要push centos镜像到我的仓库中
REPOSITORY TAG IMAGE ID CREATED SIZE
centos latest 300e315adb2f 3 months ago 209MB
ubuntu LH a85c2d818871 8 months ago 487MB
ubuntu latest 74435f89ab78 8 months ago 73.9MB
首先修改centos的tag
docker tag 300e315adb2f 17754017059/centos:latest
REPOSITORY TAG IMAGE ID CREATED SIZE
17754017059/centos latest 300e315adb2f 3 months ago 209MB
centos latest 300e315adb2f 3 months ago 209MB
ubuntu LH a85c2d818871 8 months ago 487MB
ubuntu latest 74435f89ab78 8 months ago 73.9MB
[root@iZ2ze5ot8cnsficuqqnoj5Z ~]# docker push 17754017059/centos
The push refers to repository [docker.io/17754017059/centos]
2653d992f4ef: Pushing [======================> ] 92.25MB/209.3MB