Docker - mkdir read-only file system

2020-05-30 06:29发布

问题:

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.

回答1:

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!



标签: docker ubuntu