change PATH for building docker image
sudo docker build -t mydocker . build the image in
/var/lib/docker. Is there a way to change it to another folder e.g.
One Solution collect form web for “change PATH for building docker image”
You have to restart the docker daemon with the
docker -d -g /home/user1/docker
docker -d --graph="/home/user1/docker"
Keep in mind that once you do this, all your images for that docker daemon instance will get stored on
And also that generally the Docker daemon runs a
root. So it’s probably better to specify a directory owned by