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