Sign inSign up

lordgaav/dind-options

By lordgaav

Updated over 6 years ago

A modified version of the official dind image, allowing arguments to be passed as an env variable.

Image
3

500K+

lordgaav/dind-options repository overview

dind-options Docker Image

A slightly modified version of the official Docker-in-Docker image (specifically the docker:dind image), allowing arguments to its entrypoint to be passed as an environment variable.

My main issue was that when using the official image as a Gitlab CI service, I am unable to pass any CLI options. Because I use a Docker registry with a self-signed certificate, I need to pass --insecure-registry to dind during startup.

As such, I added a small wrapper entrypoint that adds the contents of the DOCKER_OPTS environment variable to the CLI arguments of the normal entrypoint.

This allows me to do this in Gitlab CI:

image: docker:latest

variables:
    DOCKER_OPTS: "--insecure-registry=my.docker.registry"
    DOCKER_HOST: "tcp://lordgaav__dind-options:2375"

services:
    - lordgaav/dind-options:latest

License

Released under the MIT license.

Tag summary

Content type

Image

Digest

Size

68.2 MB

Last updated

over 6 years ago

docker pull lordgaav/dind-options