Storing local docker images on External HDD boot2docker -
i'm using docker on macbook air unfortunately has quite limited hard drive space (120gb).
was wondering how store containers on external drive instead of default (which believe /var/lib/docker/) ?
edit: in fact not /var/lib/docker - when using boot2docker believe files stored on virtualbox instance.
after clearing macbook folder, mount external hard drive on path:
mount -t <fstype> -o defaults /dev/<your device> /var/lib/docker/
for use boot2docker, try like:
mount -t vboxsf -o uid=1000,gid=50 /dev/<your device> /var/lib/docker/
where <your device>
example sdb
.
Comments
Post a Comment