Skip to content

Alternative Path for Docker Volumes

Gerrit Gogel edited this page Feb 12, 2023 · 1 revision

If you want to use a different path, like a separate drive, to store your Docker volumes, simply create a symbolic link like this:

service docker stop
mv /var/lib/docker/volumes /var/lib/docker/volumes-bak
mkdir -p /mnt/external/volumes
ln -sf /mnt/external/volumes /var/lib/docker
service docker start
Clone this wiki locally