Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Docker 'is not an absolute path or is a symlink' error

Tags:

docker

I start docker at private cloud host and get next error

sudo docker run hello-world
docker: Error response from daemon: OCI runtime create failed: /var/lib/docker/overlay2/83d55d497417883ea85b63ebe3138e5f5dbc2b3c8b2db663c1a007e7af1757f1/merged 
is not an absolute path or is a symlink: unknown.
ERRO[0000] error waiting for container: context canceled

ll shows next

ll /var/lib/docker/overlay2                             
lrwxrwxrwx 1 root root 20 Jun 19 15:32 /var/lib/docker/overlay2 -> /dev/docker-overlay2/

Are there any way to fix it ?

like image 244
Ryabchenko Alexander Avatar asked Jul 18 '19 14:07

Ryabchenko Alexander


2 Answers

I met this problem, I restart docker service, solve it

systemctl restart docker
like image 194
silva Avatar answered Nov 07 '22 12:11

silva


problem was that someone configured symlink for "fat" directory with images to move it to another disc. Instead of properly configuring in /etc/docker/daemon.json

like image 41
Ryabchenko Alexander Avatar answered Nov 07 '22 12:11

Ryabchenko Alexander