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.
- Stop docker
- Move the directory and contents.
- Create a symlink from the original location to the new one.
- Start docker.