Can not pull/push images after update docker to 1.12

前端 未结 8 1188
长发绾君心
长发绾君心 2020-12-22 17:52

The private registry was worked well based on docker 1.10.3,but I can not pull/push images after the docker updated to 1.12.0.

I had modified the /etc/sysconfig/dock

8条回答
  •  情歌与酒
    2020-12-22 18:16

    None of the solutions worked on Ubuntu 18.04 so spend some time to find the root cause.

    Steps to solve an issue

    sudo vi /lib/systemd/system/docker.service
    # ExecStart=dockerd .... --insecure-registry=192.168.99.100:5000
    sudo systemctl stop docker.service
    sudo systemctl daemon-reload
    sudo systemctl start docker.service
    

    What was the issue?

    I would recommend to check where exactly dockerd options are configured regardless of you Linux distribution with:

    sudo find /etc /lib -name 'docker*' | while read -r line; do grep dockerd $line /dev/null; done
    

提交回复
热议问题