Docker Community Forums

Share and learn in the Docker community.

How do you change the location of Docker.qcow2?


(Ronald Petty) #1

Is it possible to change the location of the image cache for Docker? I know removing/resizing qcow has been the solution for a while. Is it possible to use a larger disk? Related, where do we configure Docker Engine with Docker for Mac?

Expected behavior

Don’t fill root disk.

Actual behavior

Fills disk.

Information

  • the output of:
    • pinata diagnose -u on OSX
      pinata diagnose -u
      OS X: version 10.11.5 (build: 15F34)
      Docker.app: version: v1.11.1-beta14.5.m
      Running diagnostic tests:
      [OK] docker-cli
      [OK] Moby booted
      [OK] driver.amd64-linux
      [OK] vmnetd
      [OK] osxfs
      [OK] db
      [OK] slirp
      [OK] menubar
      [OK] environment
      [OK] Docker
      [OK] VT-x
      Docker logs are being collected into /tmp/20160610-132405.tar.gz
      Most specific failure is: No error was detected
      Your unique id is: 847E919B-0CE2-4590-8595-A9C63DC9F9C5
      Please quote this in all correspondence.
  • a reproducible case if this is a bug, Dockerfiles FTW
    Simply use Docker for Mac for any amount of time.
  • page URL if this is a docs issue or the name of a man page
  • host distribution and version ( OSX 10.10.x, OSX 10.11.x, Windows, etc )

Steps to reproduce the behavior

  1. install Docker for Mac
  2. use it

(Matthias Endler) #2

You can move the Docker for Mac files to a different location on the commandline:

It works on my machine, but be careful.
NO WARRANTY! THIS COULD BREAK YOUR SYSTEM!

  1. Check that you have enough disk space on the new location for Docker.qcow2
  2. Stop Docker for Mac (e.g. from the Menubar)
  3. Open Terminal
  4. Type the following:

mv ~/Library/Containers/com.docker.docker/ /path/to/new/location/
ln -s /path/to/new/location/ ~/Library/Containers/com.docker.docker

  1. Start Docker for Mac