Can not pull/push images after update docker to 1.12

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

    I also had same issue and followed below steps:

    1. Create file

     vi /etc/docker/daemon.json
    

    2. Add below content

    {
            "insecure-registries":["192.168.1.142:5000"]
     }
    

    3.Restart Docker

    service docker restart
    
    0 讨论(0)
  • 2020-12-22 18:33

    If you are using Windows and you get this error you need to create a file here: "C:\ProgramData\docker\config\daemon.json"

    and do the same as @Bspec mentioned above:

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

    Then restart docker using PowerShell commands:

    Stop-Service docker
    Start-Service docker
    
    0 讨论(0)
提交回复
热议问题