본문 바로가기
Development/Docker

[Docker] /var/lib/docker/overlay2/<folder name> no such file or directory

by shuka 2022. 10. 5.
728x90
728x90

/var/lib/docker/overlay2/<folder name> no such file or directory

 

Error Message

/var/lib/docker/overlay2/<folder name> no such file or directory

 

Solution

내 경우에는 /etc/docker/에 daemon.json을 만들고 restart했더니 해결됐다.

 

daemon.json

cat > /etc/docker/daemon.json <<EOF
{
   "exec-opts": ["native.cgroupdriver=systemd"],
   "log-driver": "json-file",
   "log-opts": {
     "max-size": "100m"
   },
   "storage-driver": "overlay2"
}
EOF

 

restart

mkdir -p /etc/systemd/system/docker.service.d
systemctl daemon-reload
systemctl restart docker
728x90
반응형

댓글