zoukankan      html  css  js  c++  java
  • docker 推送镜像到Harbor错误修改

    Error response from daemon: Get https://192.168.160.130/v2/: dial tcp 192.168.160.130:443: connect: connection refused

     修改本机Host的/etc/docker/daemon.json 添加"insecure-registries": ["192.168.160.130"]  Harbor服务器ip

    {
    "registry-mirrors":[
    "https://dockerhub.azk8s.cn",
    "https://reg-mirror.qiniu.com"
    ],
    "insecure-registries": ["192.168.160.130"]
    }

    重启生效

    systemctl daemon-reload

    systemctl restart docker

    Jenkins配置远程访问Harbor

    Harbor配置在另一台虚拟机

    同样要加入

    修改本机Host的/etc/docker/daemon.json 添加"insecure-registries": ["192.168.160.130"]  Harbor服务器ip

    {
    "registry-mirrors":[
    "https://dockerhub.azk8s.cn",
    "https://reg-mirror.qiniu.com"
    ],
    "insecure-registries": ["192.168.160.130"]
    }

    /usr/lib/systemd/system/docker.service

    [Service]
    Type=notify
    # the default is not to use systemd for cgroups because the delegate issues still
    # exists and systemd currently does not support the cgroup feature set required
    # for containers run by docker
    ExecStart=/usr/bin/dockerd -H fd://  -H tcp://0.0.0.0:2375  --containerd=/run/containerd/containerd.sock
    ExecReload=/bin/kill -s HUP $MAINPID
    TimeoutSec=0
    RestartSec=2
    Restart=always

  • 相关阅读:
    vue-router 动态路由匹配
    vue-router $route
    vuex mapActions
    vuex mapMutations 使用
    ES6 动态计算属性名
    vuex Payload 荷载
    vuex mapGetters
    vuex mapState使用
    Vue 引入ElementUI 2.0.11:依赖未发现的问题
    vuex 深入理解
  • 原文地址:https://www.cnblogs.com/zxcnn/p/11714607.html
Copyright © 2011-2022 走看看