配置如下:
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 是为啥?