Relocate Docker Data Root Directory

Lately I had a need to move the Docker root directory to a different filesystem. After researching the item and saw that the documentation out there was limited and not very clear, I decided to write the necessary steps here.

By default, on most systems, the docker root directory is located in the directory /var/lib/docker, this directory is used to store thigs like images, volumes, and other different docker runtime items. In order to move this directory to a different location, let’s say /opt/docker-root, there are few steps required, more specifically:

Continue reading “Relocate Docker Data Root Directory”