You are not logged in.
docker server on my machine is currently using /var/lib/docker as the root dir, which I'm trying to change to something on my home partition instead.
I stopped docker.service, configured data-root in a file located at /etc/docker/daemon.json as per the wiki's instructions, copied over my data stored in the current root dir to the new directory, then restarted docker.service. after this, running 'docker info' still shows the original directory as the doot dir.
The /etc/docker/daemon.json file looks like this (username redacted):
{
"data-root": "/home/(uname)/.docker-root/docker"
}Is it an issue with permissions due to the new directory being in an user as opposed to a dedicated partition?
Last edited by ericcm (2024-07-18 23:21:07)
Offline
Check/post your docker logs for errors. You didn't post your actual commands used and by what user they were issued - and it's not clear from your description what (if anything) you did to the files' permissions. The Wiki assumes the cp command was run by root.
In general, it's ill-advised to put your root-owned docker data as a subdir of your home directory, which brings up the most important question: why do you want to move the images location?
Offline