Skip to content

Instantly share code, notes, and snippets.

@pascencio
Last active April 7, 2017 15:50
Show Gist options
  • Save pascencio/8cf7a807e828eb63fb9a886c7283e6fe to your computer and use it in GitHub Desktop.
Save pascencio/8cf7a807e828eb63fb9a886c7283e6fe to your computer and use it in GitHub Desktop.
Docker options with configuration file
# /etc/sysconfig/docker
OPTIONS="--bip=20.18.9.1/24 --fixed-cidr=20.18.9.0/24"
# /etc/systemd/system/docker.service.d/docker.conf
[Service]
EnvironmentFile=-/etc/sysconfig/docker
ExecStart=
ExecStart=/usr/bin/dockerd $OPTIONS
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment