Skip to content

Base Docker image for Molecule tests running against Docker in Docker containers.

Notifications You must be signed in to change notification settings

upenn-libraries/docker_dind_molecule

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Docker in Docker for Molecule

This image is based off of the official Docker in Docker image. It is intended to be used as a base image by Molecule when testing Ansible roles that deploy Docker containers.

Usage

You can configure Molecule to use this image in molecule.yml. The container will need to run in privileged mode and you will need to start the Docker daemon.

platforms:
  - name: instance
    image: quay.io/upennlibraries/dind_molecule
    command: dockerd-entrypoint.sh
    privileged: true

If you want to run Docker in swarm mode, you can run the Docker daemon in background, initialize the swarm, and then manually run the default sleep command used by Molecule to keep the container up.

platforms:
  - name: instance
    image: quay.io/upennlibraries/dind_molecule
    command: bash -c "dockerd-entrypoint.sh & docker swarm init; while true; do sleep 10000; done"
    privileged: true

About

Base Docker image for Molecule tests running against Docker in Docker containers.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published