Hello,
I’m getting this error message when trying to the following to run docker from a media USB storage device. [Reference: https://linuxconfig.org/how-to-move-docker-s-default-var-lib-docker-to-another-directory-on-ubuntu-debian-linux].
Open file /lib/systemd/system/docker.service with your favorite text editor and replace the following line where /new/path/docker is a location of your new chosen docker directory:
FROM:
ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock
TO:
ExecStart=/usr/bin/dockerd --data-root /media/new/path/docker -H fd:// --containerd=/run/containerd/containerd.sock
stop docker service: # systemctl stop docker
The result was:
root@ThinkPad-T430:~# ps aux | grep -i docker | grep -v grep
root 27317 0.0 1.2 748068 98704 ? Ssl Jul31 0:12 /usr/bin/dockerd --data-root /media/new/path/docker -H fd:// --containerd=/run/containerd/containerd.sock
After this I received an error message when start the containers to access sentry as mentioned here, but receiving the error message as mentioned in the topic name.
root@ThinkPad-T430:~# docker start $(docker ps -a -q --filter “status=exited”)