Distributions
› Ubuntu
› Fedora
› CentOS
中文资源站
› 网易开源镜像站
KV2
V2EX  ›  Linux

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

  •  
  •   KV2 · Oct 15, 2019 · 15300 views
    This topic created in 2576 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
    silverfox
    Oct 15, 2019 via iPhone
    1
    可以用 docker info 命令查看配置是否生效
    KV2
    KV2
    OP
    Oct 15, 2019
    2
    @silverfox 没有生效呢,Insecure Registries 只显示了 127.0.0.0/8 这地址。Ubuntu 的主机,也不知是哪里的问题。
    silverfox
    silverfox
    Oct 15, 2019 via iPhone❤️1
    3
    路径拼写有误,应该是 /etc/docker/daemon.json
    yeya24
    yeya24
    Oct 15, 2019 via iPhone
    4
    看看 docker daemon 的日志
    Latin
    Latin
    Oct 22, 2019
    5
    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   ·   Privacy   ·   Solana   ·   1319 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 20:38 · PVG 04:38 · LAX 12:38 · JFK 15:38
    ♥ Do have faith in what you're doing.