1. 程式人生 > >docker無法上傳映象到本地倉庫

docker無法上傳映象到本地倉庫

問題

[email protected]:~# docker push 192.168.19.12:5000/application/huginn

The push refers to a repository [192.168.19.12:5000/application/huginn] (len: 1)
unable to ping registry endpoint https://192.168.19.12:5000/v0/
v2 ping attempt failed with error: Get https://192.168.19.12:5000/v2/: EOF
 v1 ping attempt failed with error: Get https://192.168.19.12:5000/v1/_ping: EOF

解決方法

vi /etc/default/docker
加入
DOCKER_OPTS="$DOCKER_OPTS --insecure-registry=192.168.19.12:5000"