# Changing docker root directory

**URL:** <https://forums.suse.com/t/changing-docker-root-directory/15378>\
**Category:** SUSE Rancher Prime\
**Created:** [September 23, 2019, 3:51pm UTC](https://forums.suse.com/t/changing-docker-root-directory/15378 "2019-09-23T15:51:42Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![aggsyb](https://avatars.discourse-cdn.com/v4/letter/a/9fc348/32.png) [@aggsyb](https://forums.suse.com/u/aggsyb)\
**Post date:** [September 23, 2019, 3:51pm UTC](https://forums.suse.com/t/changing-docker-root-directory/15378/1 "2019-09-23T15:51:42Z")

</div>

Hi,

I am trying to modify the root directory for Docker within RancherOS - or at the very least modify the container volume paths. I have a FreeNAS box running a docker VM (RancherOS) and within that I have installed Portainer to easily manage the containers. Everything is running perfectly except for the fact that containers are created in /var/lib/docker/volumes . I have a share which I would like to run docker from /mnt/nfs-1/docker .

I have read the docker documentation and people suggest editing the Daemon to update the path - which does not exist on RancherOS. I suspect I need to use sudo ros config to set the paths but I can’t seem to get it to work. Is there a simple way of modifying the root directory?

Thanks,

Ben.
