[root@localhost ~]# docker push wyp/dk:latest
The push refers to a repository [wyp/dk] (len: 1)
70957432ce04: Image push failed
Please login prior to push:
Username (xiaowangtong): xiaowangtong
WARNING: login credentials saved in /root/.docker/config.json
Login Succeeded
The push refers to a repository [wyp/dk] (len: 1)
70957432ce04: Image push failed
Error pushing to registry: Authentication is required.
[root@localhost ~]# cat in /root/.docker/config.json
cat: in: No such file or directory
{
"auths": {
"https://hub.docker.com/r/": {
"auth": "eGlhb3dhbmd0b25nOnd5cDE5OTAxMjI2",
"email": "[email protected]"
},
"https://index.docker.io/v1/": {
"auth": "eGlhb3dhbmd0b25nOnd5cDE5OTAxMjI2",
"email": "[email protected]"
}
}
}[root@localhost ~]#
uj5u.com熱心網友回復:
在線等,,,,uj5u.com熱心網友回復:
你的用戶名是什么,正常情況下你的鏡像名字應該是youusername/image_name:taguj5u.com熱心網友回復:
docker push xiaowangtong/dk:latestuj5u.com熱心網友回復:
docker push <repo-user>/<image-name>:<image-tag>push的鏡像必須按照上面的格式,否則就會報這個錯
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/71148.html
標籤:Docker
