I have a docker-compose.yml which is pulling an image. When i am running the docker-compose file. It throws no space error. How can i specify the path where the image is downloaded. it getting downloaded it root which just has 15gb. I want it to be downloaded in /home because it has a lot of space left.
Asked
Active
Viewed 1,390 times
0
-
You have to build it first from a Dockerfile, and then you can use it in your docker-compose file – AppyGG Feb 19 '20 at 09:03
-
You can't change it for individual images, but you can change Docker's global storage location. – David Maze Feb 19 '20 at 11:16
1 Answers
0
You can change the data root path of docker in the configuration file located by default /etc/docker/daemon.json
. The property to change is data-root
.
You can find out more in the official documentation.

Marc ABOUCHACRA
- 3,155
- 12
- 19