Consistently out of disk space in docker beta

I had 20gigs initially ( when I converted from Boot2Docker+Vbox)
If I recreated the image it seems to have a max size of 64g.

Did some more digging…

I installed qemu

brew install qemu

I can use qemu’s tools to manipulate the image…

$ qemu-img info Docker.qcow2
image: Docker.qcow2
file format: qcow2
virtual size: 64G (68719476736 bytes)
disk size: 1.1G
cluster_size: 65536
Format specific information:
  compat: 1.1
  lazy refcounts: true
   refcount bits: 16
   corrupt: false

Add 5 more gigs

 qemu-img resize Docker.qcow2 +5g

See size increase from 65g -> 69g

qemu-img info Docker.qcow2      
image: Docker.qcow2
file format: qcow2
virtual size: 69G (74088185856 bytes)
disk size: 1.1G
cluster_size: 65536
Format specific information:
  compat: 1.1
  lazy refcounts: true
  refcount bits: 16
  corrupt: false

Download gpartd iso from http://gparted.org/download.php

Run Qemu with disk image + gparted and resize the FS … ( Should see 5g unallocated space )

qemu-system-x86_64 -drive file=Docker.qcow2  -m 512 -cdrom ~/Downloads/gparted-live-0.25.0-3-i686.iso -boot d -device usb-mouse -usb
5 Likes