V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
coolair
V2EX  ›  问与答

有朋友知道为啥在 Docker in Docker 中的 services 设置了 command: ["--insecure-registry=registry.test:5000"] 仍旧无效吗?

  •  
  •   coolair · 2022-02-17 17:16:40 +08:00 · 464 次点击
    这是一个创建于 1314 天前的主题,其中的信息可能已经有所发展或是发生改变。

    配置如下:

    build:
      variables:
        DOCKER_OPTS: "--insecure-registry=registry.test:5005"
        DOCKER_HOST: tcp://localhost:2375
    
      services:
        - name: 'docker:18.09.7-dind'
        command: ["--insecure-registry=registry.test:5005"]
    

    另外,宿主机的 daemon.json 也设置了,但是仍旧访问 https 而不是 http 是为啥?

    目前尚无回复
    关于   ·   帮助文档   ·   自助推广系统   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2884 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 31ms · UTC 13:36 · PVG 21:36 · LAX 06:36 · JFK 09:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.