Hey all,
Any Vagrant wizards around? I'd like to figure out how to mount a directory on my local host as /var/lib/docker for the Atomic Vagrant boxen - so users don't have to worry about other ways of expanding the storage to putter around with Atomic and running containers.
Mounting the directory works fine, but I get errors around missing files/directories when trying to pull a docker image. It may be what I'm wanting to do is overly complex, but thought I'd see if anybody had suggestions...
Best,
jzb
On 03/17/2015 11:29 AM, Joe Brockmeier wrote:
Hey all,
Any Vagrant wizards around? I'd like to figure out how to mount a directory on my local host as /var/lib/docker for the Atomic Vagrant boxen - so users don't have to worry about other ways of expanding the storage to putter around with Atomic and running containers.
Mounting the directory works fine, but I get errors around missing files/directories when trying to pull a docker image. It may be what I'm wanting to do is overly complex, but thought I'd see if anybody had suggestions...
It's likely something to do with how vagrant is mounting the folder. What provider are you using? The standard `synced_folder` has a couple different backends (NFS, smb, etc) so it may be specific to certain providers.
I think the easiest way to punt would be to offer a sparse image (though what format is a whole other discussion).
On 03/17/2015 11:44 AM, Ryan Brown wrote:
Any Vagrant wizards around? I'd like to figure out how to mount a directory on my local host as /var/lib/docker for the Atomic Vagrant boxen - so users don't have to worry about other ways of expanding the storage to putter around with Atomic and running containers.
Mounting the directory works fine, but I get errors around missing files/directories when trying to pull a docker image. It may be what I'm wanting to do is overly complex, but thought I'd see if anybody had suggestions...
It's likely something to do with how vagrant is mounting the folder. What provider are you using? The standard `synced_folder` has a couple different backends (NFS, smb, etc) so it may be specific to certain providers.
Using rsync.
I'll circle back to this later, but if anybody else has ideas, feel free to share.
Best,
jzb
On Tue, Mar 17, 2015, at 11:29 AM, Joe Brockmeier wrote:
Hey all,
Any Vagrant wizards around? I'd like to figure out how to mount a directory on my local host as /var/lib/docker for the Atomic Vagrant boxen - so users don't have to worry about other ways of expanding the storage to putter around with Atomic and running containers
It doesn't really work to sync content into /var/lib/docker behind the daemon's back.
Running a local caching registry is one option (say on a "master" box, and configuring nodes to pull from it it). That saves you download time, but not storage.
It would also be possible to use something like Ceph/Gluster to store images between VMs (patches for Docker exist), but then you lose the LVM copy-on-write. Overlayfs would solve this by allowing per-node writes to stay in the machine's storage pool, while drawing read-only data from elsewhere.