嗨,我正在尝试 docker push
[docker-simple-httpserver]# docker push myregistry/simplehttpserver:latest
The push refers to a repository [myregistry/simplehttpserver] (len: 1)
Sending image list
FATA[0000] Error: Status 403 trying to push repository simplehttpserver: "{\"error\": \"Unauthorized updating repository images\"}"
我有没有办法在 --- 命令上指定 username
和 password
docker push
命令?
原文由 Jas 发布,翻译遵循 CC BY-SA 4.0 许可协议
我认为他们出于安全原因将密码保留在命令行之外。
这样做的方法是先登录然后推送。
https://docs.docker.com/mac/step_six/
然后推