How move docker data to other dir in ubuntu/debian

Stop docker sudo systemctl stop docker nano /etc/docker/daemon.json Add data { “data-root”: “/new/path/to/docker-data” } Check docker has been stopped ps aux | grep -i docker | grep -v grep Copy the files to the new location sudo rsync -axPS /var/lib/docker/ /new/path/to/docker-data Options explanation, check out the man page for more info -a, –archive archive mode; […]

Читать дальше… from How move docker data to other dir in ubuntu/debian