Created
January 4, 2016 22:09
-
-
Save davespanton/cf366f4e27d3b93418d3 to your computer and use it in GitHub Desktop.
Docker storage on external drive
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
# pseudo script... | |
mkfs.btrfs /dev/sdb | |
mkdir /var/lib/docker-btrfs | |
mount /dev/sdb /var/lib/docker-btrfs/ | |
service docker stop | |
# the follow will test it, then stick the options in /etc/default/docker (or wherever) | |
docker -d -s btrfs --graph="/var/lib/docker-btrfs" -H unix:///var/run/docker.sock |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment