swarm-dind-operator

command module
v0.1.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 28, 2019 License: MIT Imports: 11 Imported by: 0

README

Docker Swarm DinD Operator

Simple operator for running Docker in Docker (DinD) as a Swarm service

Configuration

The following flags are currently available:

  • --args string - the arguments to give to the DinD container
  • --binds stringArray - the directories to bind in the container
  • --image string - the image to use for DinD (default "docker:18.09-dind")
  • --name string - the name to give to the DinD container (default "swarm-dind-operator")
  • --stop-timeout int - the timeout to wait when the container is stopped in seconds (default 10)
  • --help prints the help message

Example usage

Given the following docker-compose.yml file

version: '3.7'

services:
  dind:
    image: sourcelair/swarm-operator-dind
    command:
    - swarm-operator-dind
    - --args=--experimental
    - --binds=/mnt/dind:/var/lib/docker
    volumes:
    - /var/run/docker.sock:/var/run/docker.sock

you can deploy the operator to Docker Swarm with

docker stack deploy -c docker-compose.yml

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL