docker gitlab

Docker in docker (dind) insecure registry

If you are using docker in docker (dind) to create docker containers in a gitlab environment you can use the following snippet to easily use an insecure registry:

  stage: building
  image: docker:latest

  # When using dind, it's wise to use the overlayfs driver for
  # improved performance.
    DOCKER_DRIVER: overlay2

  - name: docker:dind
    command: ["", "--insecure-registry=YOUR_HOST:YOUR_PORT"]

    - echo "create some docker here"

An insecure registry with public access is of course a bad idea …

Leave a Reply

Your email address will not be published.