[root@blockgo k8s-nginx]# docker login IP:PORT
Username: huangbosbos
Password:
Error response from daemon: Get https://IP:PORT/v2/: http: server gave HTTP response to HTTPS client
複製代碼
修改配置/etc/docker/daemon.json地址爲IP:PROT後正常,以下:
[root@blockgo ~]# docker login IP:PORT
Username: huangbosbos
Password:
WARNING! Your password will be stored unencrypted in /root/.docker/config.json.
Configure a credential helper to remove this warning. See
https://docs.docker.com/engine/reference/commandline/login/#credentials-store
Login Succeeded
複製代碼
上傳問題
[root@blockgo k8s-nginx]# docker push IP:PORT/pig4cloud/hello-k8s
The push refers to repository [IP:PORT/pig4cloud/hello-k8s]
7c2f050e271f: Pushing 4.096kB
4fc1aa8003a3: Retrying in 1 second
5fb987d2e54d: Retrying in 1 second
831c5620387f: Retrying in 1 second
EOF
複製代碼