Docker Community Forums

Share and learn in the Docker community.

Error after moving docker container

I wanted to move my docker container to another location (EBS) in the EC2 instance for more storage.
In this process I stopped the existing container and moved using mv /var/lib/docker/ /data/docker/
Now when I start my container again, it’s throwing an error saying
Error response from daemon: stat /var/lib/docker/overlay2/f66557ad7c46d915a7206a4eff490b36848064f738dabde68355663149a4e451: no such file or directory

/var/lib/docker is empty now, should I change any config file to redirect the path to /data/docker/docker/overlay2 ?
Any help?