Container storage and NFS/iSCSI

628 views
Skip to first unread message

Mauricio Tavares

unread,
Jul 16, 2014, 2:48:47 AM7/16/14
to coreo...@googlegroups.com
I take containers are stored somewhere in /var/lib/docker/ (/var/lib/docker/containers might be a dead giveaway). What would I lose by putting that directory in a NFS fileshare or iSCSI device?

Darren Shepherd

unread,
Jul 16, 2014, 11:19:38 AM7/16/14
to coreo...@googlegroups.com
Docker in CoreOS needs to be on btrfs.  So /var/lib/docker can't be NFS.  It could be iSCSI as long as you format it as btrfs.  So images must be on btrfs, but Docker volumes can be on whatever filesystem you can get to work.  Either mount nfs to something like /mnt/nfs and then do -v /mnt/nfs:/container_dir or you can mount nfs to /var/lib/docker/volumes and then all volumes like -v /container_dir will go to NFS.

Darren
Reply all
Reply to author
Forward
0 new messages