Can not pull/push images after update docker to 1.12

前端 未结 8 1180
长发绾君心
长发绾君心 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:10

    For Windows users

    Add local registry here and apply:

    0 讨论(0)
  • 2020-12-22 18:10

    For Mac Users: Update the docker preferences using the (docker) icon in top bar

    Preferences -> Daemon -> Insecure Registry [Click (+) sign] -> add :port

    hit "Apply & Restart" button at bottom

    0 讨论(0)
  • 2020-12-22 18:10

    modifying "/etc/docker/daemon.json" didn't work for me.

    Putting it under "/etc/sysconfig/docker" as below, worked.

    INSECURE_REGISTRY="--insecure-registry 192.168.24.1:8787"

    0 讨论(0)
  • 2020-12-22 18:14

    In order to push, add the ip to insecure registry on the client side (e.g. for Windows)

    To pull, add it to the server side (in this case Ubuntu)

    vim /etc/docker/daemon.json
    

    and then restart Docker.

    0 讨论(0)
  • 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
    
    0 讨论(0)
  • 2020-12-22 18:23

    I had the same issue.

    This helped for me:

    • Create or modify /etc/docker/daemon.json on the client machine

      { "insecure-registries":["myregistry.example.com:5000"] }

    • Restart docker daemon

      sudo /etc/init.d/docker restart

    0 讨论(0)
提交回复
热议问题