Created
February 26, 2018 23:41
-
-
Save zopieux/146d35986896a39fcbc4e865d1460da8 to your computer and use it in GitHub Desktop.
Docker on NFS with automount
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# /etc/systemd/system/docker.service.d/override.conf | |
# TODO: use systemd-automount? | |
# defeats the purpose of the /net discovering service, though | |
[Service] | |
# trigger mount (share is /docker) | |
ExecStartPre=/usr/bin/stat /net/SERVER/docker | |
# umount | |
ExecStopPost=/usr/bin/umount /net/SERVER/docker | |
ExecStart= | |
ExecStart=/usr/bin/dockerd -H fd:// --data-root=/net/SERVER/docker |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment