# Change docker location

**URL:** <https://deeptalk.lambda.ai/t/change-docker-location/4158>\
**Category:** Technical Help\
**Created:** [March 26, 2024, 8:34am UTC](https://deeptalk.lambda.ai/t/change-docker-location/4158 "2024-03-26T08:34:56Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![kresimir58](https://avatars.discourse-cdn.com/v4/letter/k/6f9a4e/32.png) [@kresimir58](https://deeptalk.lambda.ai/u/kresimir58)\
**Post date:** [March 26, 2024, 8:34am UTC](https://deeptalk.lambda.ai/t/change-docker-location/4158/1 "2024-03-26T08:34:56Z")

</div>

I am using a lot of docker and since i ocasionally turn on/off instances, i would like that data to be saved to storage.

I’ve changed location of docker:

nano /etc/docker/daemon.json  
{  
“data-root”: “/home/ubuntu/storage1-utah/docker”  
}

sudo systemctl daemon-reload  
sudo systemctl restart docker

And docker hello-world example works, but other things don’t, like pulling various images:

docker pull ubuntu  
docker: failed to register layer: open /var/lib/dpkg/info/gcc-12-base:amd64.list: invalid argument.

I think it is somehow related to docker not working on storage.  
Any ideas?

---

_[View the full topic](https://deeptalk.lambda.ai/t/change-docker-location/4158)._
