V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
coolair
V2EX  ›  问与答

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

  •  
  •   coolair · Feb 17, 2022 · 615 views
    This topic created in 1544 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   ·   4732 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 54ms · UTC 10:03 · PVG 18:03 · LAX 03:03 · JFK 06:03
    ♥ Do have faith in what you're doing.