Move Docker To Another Location on Linux

October 17th, 2018

Docker can take a toll on your disk space. Fortunately you don’t have to keep the files in /var/lib/docker and on certain cloud providers like Digital Ocean it’s cheaper to attach a new block volume than to upgrade a droplet to get more disk space. After you’ve decided on a location, simply do: ChangeĀ /lib/systemd/system/docker.service: Then: When you’ve verified things are working, remove the old docker directory.