V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
KV2
V2EX  ›  Linux

已经试了好多种方法了, Docker daemon.json 配置不生效怎么解决??

  •  
  •   KV2 · Oct 15, 2019 · 14759 views
    This topic created in 2386 days ago, the information mentioned may be changed or developed.

    在一台虚拟机上配置并启动 Docker registry

    在另一台虚拟机上 /etc/docker/daemno.json 配置了 insecure-registries,然后重启 docker 服务

    但在 push 镜像到私 Docker registry 时总是出现 http: server gave HTTP response to HTTPS client

    5 replies    2019-10-22 15:14:58 +08:00
    silverfox
        1
    silverfox  
       Oct 15, 2019 via iPhone
    可以用 docker info 命令查看配置是否生效
    KV2
        2
    KV2  
    OP
       Oct 15, 2019
    @silverfox 没有生效呢,Insecure Registries 只显示了 127.0.0.0/8 这地址。Ubuntu 的主机,也不知是哪里的问题。
    silverfox
        3
    silverfox  
       Oct 15, 2019 via iPhone   ❤️ 1
    路径拼写有误,应该是 /etc/docker/daemon.json
    yeya24
        4
    yeya24  
       Oct 15, 2019 via iPhone
    看看 docker daemon 的日志
    Latin
        5
    Latin  
       Oct 22, 2019
    command

    docker login xxx.xxx.com:port


    config


    {
    "insecure-registries": [
    " xxx.xxx.com:port"
    ],
    "registry-mirrors": [
    "https://docker.mirrors.ustc.edu.cn"
    ]
    }
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3193 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 00:28 · PVG 08:28 · LAX 17:28 · JFK 20:28
    ♥ Do have faith in what you're doing.