docker无法上传镜像到本地仓库

时间:2023-02-03 13:07:58

问题

root@ubuntu:~# 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"