Error response from daemon: error creating overlay mount to /media/new/path/docker/overlay2/cf4XXXX9/merged: invalid argument

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”)

I meet the same issue and fix it by change the disk volume type used by docker into Ext4.

This response from stackoverflow might help.

I was able to resolve this by doing a factory reset in Docker.

Docker for Mac → Troubleshooting (it is the “bug” icon next to the Settings icon) → Reset Factory Defaults