Where does docker store it's temp files during extraction? Where does docker store it's temp files during extraction? docker docker

Where does docker store it's temp files during extraction?


By default, Docker will use /var/lib/docker/tmp for it's temporary directory. This can be overridden with the DOCKER_TMP environment variable for the docker daemon.


I'm using Docker on Ubuntu and to needed to move the temporary directory to another drive to avoid thrashing the USB disk.

The following method worked for me.

  1. Stop docker
  2. Move the directory and contents.
  3. Create a symlink from the original location to the new one.
  4. Start docker.