0

I am using a machine with os ubuntu-18.05 in arm platform. It has some space issue and I want to work with docker images. Usually, when I work on this machine I mount a directory and perform memory expensive operations there.

Is there any way I can pull image in host machine and make it work?

Example: I have mounted directory /home/test-mount, now instead of storing docker image and it's graph in location mentioned here Where are Docker images stored on the host machine? I want to efficiently pull, store and use image at path /home/test-mount, such that it can be easily switched to actual path.

Pranjal Doshi
  • 862
  • 11
  • 29

1 Answers1

0

Stop docker and make sure the following can be found in in /etc/docker/daemon.json:

{
"data-root": "/home/test-mount"
}

Now restart docker