Skip to content

Instantly share code, notes, and snippets.

@vadikgo
Last active June 9, 2017 07:27
Show Gist options
  • Save vadikgo/21a939687e04c26dc6417e74861403b5 to your computer and use it in GitHub Desktop.
Save vadikgo/21a939687e04c26dc6417e74861403b5 to your computer and use it in GitHub Desktop.
(https://forums.docker.com/t/cleaning-up-docker-for-mac/17894)
ls -lh ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux/Docker.qcow2
docker run -it --rm -v /:/host alpine chroot /host /bin/sh -c 'dd if=/dev/zero of=/var/lost+found/zeroes; rm /var/lost+found/zeroes'
cd ~/Library/Containers/com.docker.docker/Data/com.docker.driver.amd64-linux
/Applications/Docker.app/Contents/MacOS/qemu-img convert -p -O qcow2 Docker.qcow2 Docker-slim.qcow2
mv Docker-slim.qcow2 Docker.qcow2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment