Utilising another harddrive on Linux virtual machine

Hi,

Actually I fixed it using the suggesion here How to specify different root directory for Docker on Linux - #5 by geoma

If this helps with others:

Stop docker
sudo service docker stop

Move old docker over to new drive

cp -r /var/lib/docker /drive/data/docker

Make a config file

sudo nano /etc/docker/daemon.json

Add the path to the new drive

{
  "data-root": "/drive/data/docker"
}

Restart docker
sudo service docker start

Verify
docker info -f '{{ .DockerRootDir}}'

Then restart the webodm service

5 Likes