Move the docker data directory

The default location for the docker data directory, when using overlay2 storage driver is /var/lib/docker. Maybe you want to move it to another location, and it’s actually pretty easy. Stop the docker service: sudo systemctl stop docker.service Copy the docker folder to the new location:sudo cp -rp /var/lib/docker /path/to/new/locationThe p in -rp will preserve ownership,…

Continue Reading