docker hub push 鏡像

dockerhub push 鏡像報錯:denied: requested access to the resource is denied

# docker push docker.io/szh1124/mediawiki-apb:v3.10
The push refers to a repository [docker.io/szh1124/mediawiki-apb]
a21152fe6532: Preparing 
71e5867d1353: Preparing 
5a6fd53daf54: Preparing 
b831a1e33804: Preparing 
43e653f84b79: Preparing 
denied: requested access to the resource is denied

解決:

1)mv /root/.docker/config.json /root/.docker/config.json.bak
2)docker login docker.io 這樣登陸靠譜
//docker login https://hub.docker.com
3)docker pull
4)docker tag XXX  docker.io/szh1124/XXX
5)docker push docker.io/szh1124/XXX
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章