How to specify different root directory for Docker on Linux

Basically, after stopping docker.service and docker.socket,
I added the the -g parameter to the ExecStart parameter at
/lib/systemd/system/docker.service
ExecStart=/usr/bin/dockerd -g /home/josei/docker -H fd://
I then copied contents
sudo rsync -aqxP /var/lib/docker/ /home/josei/docker
AND
created
/etc/docker/daemon.json
with

{
  "data-root": "/mnt/docker"
}

But it keeps filling up my root partition…
(and so webODM hangs)

EDIT: Wait, I think I got the solution… ill be right back
EDIT2: Seems I was so stupid to enter a wrong location (/mnt/docker), which was still in my root partition

Anyway, the /home/josei/docker , ex /var/lib/docker folder is inaccessible, I can’t enter it through terminal nor through GUI file manager… how can I know what it holds and what size it is occupying?

1 Like