coolair
V2EX  ›  问与答

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

  •  
  •   coolair · Feb 17, 2022 · 658 views
    This topic created in 1572 days ago, the information mentioned may be changed or developed.

    配置如下:

    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 是为啥?

    No Comments Yet
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5085 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 09:40 · PVG 17:40 · LAX 02:40 · JFK 05:40
    ♥ Do have faith in what you're doing.