I have been struggling from past weeks to find solution to my problem.
I have docker with Portainer installed on Linux mint OS and eventually i ran out of space so i have moved the docker to my external hard drive under a folder called docker.
Steps I have taken to move docker directly.
edited the docker service and added the new path in it, it looks like this now >> (ExecStart=/usr/bin/docker daemon -g /media/data/docker -H fd:// --containerd=/run/containerd/containerd.sock)
create new file daemon.json in etc/docker with below in it
moved all docker file from old to new location via a commond which looked like this >>( rsync -aqxP /var/lib/docker/ /media/data/docker
Restarted the server.
but when i do sudo systemctl status docker i get below.
● docker.service - Docker Application Container Engine
Loaded: loaded (/lib/systemd/system/docker.service; enabled; vendor preset: enabled)
Active: activating (start) since Sun 2021-06-20 12:21:46 CEST; 1h 10min ago
TriggeredBy: ● docker.socket
Main PID: 836 (docker)
└─836 /usr/bin/docker daemon -g /media/data/docker -H fd:// --containerd=/run/containerd/conta>
Jun 20 12:21:46 linuxmint systemd: Starting Docker Application Container Engine…
Jun 20 12:21:47 linuxmint docker: WARNING: Error loading config file: .dockercfg: $HOME is not defined
External drive is NTFS and docker folder has root permissions.
However i ignored the warring and fired up my portainer but it does not work. site unreachable.
some one help me here ?