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