Some times docker images can be big and if you have many of them this could cause some issues.
I have worked with non-default location for docker for a while and for my needs it worked out pretty well.
Searching the internet, there are a bunch of references on how to do this change.
I have done:
systemctl stop docker vim /lib/systemd/system/docker.service # here I have changed: # ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock # to # ExecStart=/usr/bin/dockerd -g /foobar -H fd:// --containerd=/run/containerd/containerd.sock systemctl daemon-reload systemctl start docker
So the -g /foobar option allows you to “rebase” docker in the system.