course-implementing-self-hosted-docker-registry icon indicating copy to clipboard operation
course-implementing-self-hosted-docker-registry copied to clipboard

dind container starts in port tls 2376

Open cnunez007 opened this issue 5 years ago • 0 comments

modify docker-compose.yml and add DOCKER_TLS_CERTDIR: ""

version: "3.5"

services:
  learning-registry:
    image: registry:2.6.2
  learning-jenkins:
    build: ./learning-jenkins
    volumes:
      - learning-jenkins-home:/var/jenkins_home
    ports:
      - "8190:8080"
    environment:
      DOCKER_HOST: tcp://dind:2375
  vetted-registry:
    image: registry:2.6.2
    ports:
      - "55000:5000"
    volumes:
      - ./config.yml:/etc/docker/registry/config.yml
  requestbin:
    image: weshigbee/requestbin
    ports:
      - "8000:8000"
  dind:
    image: docker:dind
    privileged: true
    environment:
       DOCKER_TLS_CERTDIR: ""
    volumes:
      - dind-data-root:/var/lib/docker
    command: [
      "--insecure-registry", "learning-registry:5000",
      "--insecure-registry", "vetted-registry:5000",
    ]


volumes:
  learning-jenkins-home:
  dind-data-root:

cnunez007 avatar Jun 12 '20 00:06 cnunez007