For those who would like to follw the roue of bind mounting the docker directory:
- Stop the docker daemon
- Chose a directory where you future docker root should be /path_to_my_new_docker_root
- Make sure /path_to_my_new_docker_root is not on a mergerfs
- for testing purposes: do a bind mount from /var/lob/docker to /path_to_my_new_docker_root (testing only)
- Start your docker deamon and check docker image ls -> no image should be found!
- Stop the docker daemon
- unmount /var/lib/docker again
- Check the contents of /path_to_my_new_docker_root -> the docker files should be there
- now remove all files in /path_to_my_new_docker_root
- Now you are prepared for the real thing
- Stop the docker daemon again
- Move the content of /var/lib/docker to /path_to_my_new_docker_root (or do a rsync -a ... to keep the old stuff)
- append a line to /etc/fstab
/path_to_my_new_docker_root /var/lib/docker none bind 0 0 - Start the docker daemon and check docker image ls and docker volume ls and docker ps -a
All your stuff should be there and the containers be running. - Reboot and check again
- If everything works click the link in my signature