Living-with-machines / lwmdb

A django-based library for managing the Living with Machines newspapers metadata database schema
https://living-with-machines.github.io/lwmdb/
MIT License
2 stars 0 forks source link

docker server config doesn't cache to mounted drive #111

Closed griff-rees closed 1 year ago

griff-rees commented 1 year ago

Running docker on a mounted hard drive path doesn't, by default, alter where the docker image is stored. See this stack overflow comment for details.

griff-rees commented 1 year ago

Following this tutorial I'm shifting to the mounted external volume via something like:

$ sudo cat > /etc/docker/daemon.json <<EOF
{
    "data-root": "/mnt/docker-data"
}
EOF
$ sudo rsync -aSv /var/lib/docker/ /mnt/docker-data
$ sudo service docker restart
griff-rees commented 1 year ago

Using an intermediary drive between different azure configs proved quite complex to maintain. Some parts of this configuration were achieved but difficult to replicate and quite specific to azure. Safest to leave unresolved unless further attention in the future.