Skip to content

Instantly share code, notes, and snippets.

@jhazelwo
Created December 16, 2016 13:14
Show Gist options
  • Save jhazelwo/90efdbd9ca3f4f34b5879b28813b1610 to your computer and use it in GitHub Desktop.
Save jhazelwo/90efdbd9ca3f4f34b5879b28813b1610 to your computer and use it in GitHub Desktop.
Docker SystemD AWS EFS
install -d -m 0700 -o 0 -g 0 /etc/systemd/system/docker.service.d
echo '[Service]' > /etc/systemd/system/docker.service.d/efs.conf
echo 'ExecStart=' >> /etc/systemd/system/docker.service.d/efs.conf
echo "ExecStart=/usr/bin/dockerd -H fd:// -s devicemapper -g /data/$(hostname)/docker" >> /etc/systemd/system/docker.service.d/efs.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment