Docker - mkdir read-only file system

2020-05-30 06:36发布

After freshly installing Ubuntu 18 I am receiving the following error when trying to launch a docker container that has a bind to a LVM (ext4) partition:

mkdir /storage: read-only file system

I have tried reinstalling the OS, reinstalling Docker and forcing the drive to mount as RW (everything that isn't docker can write to the drive).

The directory that is being bound is currently set to 777 permissions.

There seems to be almost no information available for this error.

标签: docker ubuntu
1条回答
等我变得足够好
2楼-- · 2020-05-30 07:03

I had same issue, but removed docker from snap and reinstall on following the official docker steps.

Remove docker from snap

snap remove docker

then remove the docker directory, and old version

rm -R /var/lib/docker

sudo apt-get remove docker docker-engine docker.io

install official docker: https://docs.docker.com/install/linux/docker-ce/ubuntu/

I hope this help for you!

查看更多
登录 后发表回答