美文网首页
docker操作 报错解决

docker操作 报错解决

作者: 打不死的小强8号 | 来源:发表于2019-10-13 18:35 被阅读0次

    1.执行命令

    docker pull registry
    

    1.Get https://registry-1.docker.io/v2/: net/http: request canceled while waiting for >connection (Client.Timeout exceeded while awaiting headers)

    2.received unexpected HTTP status: 500 Internal Server Error(未解决)

    解决方案:

    执行一下命令

    vim /etc/docker/daemon.json
    

    写入

    https://registry.docker-cn.com
    {
      "registry-mirrors":["https://docker.mirrors.ustc.edu.cn"]
    }
    

    重启docker

    systemctl daemon-reload
    systemctl restart docker
    
    "registry-mirrors":["https://docker.mirrors.ustc.edu.cn"],
    "insecure-registries":["192.168.124.132:5000"]
    docker tag busybox 192.168.124.132:5000/busybox:latest
    docker push 192.168.124.132:5000/busybox:latest
    curl http://192.168.124.132:5000/v2/_catalog
    

    docker图像化界面(admin/123456789)

    官网地址:https://www.portainer.io/installation/
    本地访问:
    http://192.168.124.131:9000
    http://192.168.124.132:9000
    http://192.168.124.132:9000
    http://192.168.124.132:9000

    添加镜像源

    sudo apt-get install -y apt-transport-https
    

    相关文章

      网友评论

          本文标题:docker操作 报错解决

          本文链接:https://www.haomeiwen.com/subject/zimrdctx.html