Docker-mkdir只读文件系统 [英] Docker - mkdir read-only file system

查看:628
本文介绍了Docker-mkdir只读文件系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

全新安装Ubuntu 18后,尝试启动具有绑定到LVM(ext4)分区的docker容器时收到以下错误:

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

我尝试重新安装操作系统,重新安装Docker并强制将驱动器安装为RW(不是docker的所有内容都可以写入驱动器)。

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).

当前已设置绑定目录到777个权限。

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

似乎几乎没有此错误的信息。

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

推荐答案

我遇到了同样的问题,但是从snap中删除了docker,并按照官方的docker步骤重新安装。

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

从snap中删除Docker

Remove docker from snap

snap remove docker

然后删除docker目录和旧版本

then remove the docker directory, and old version

rm -R /var/lib/docker

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

安装官方docker: https://docs.docker.com/install/linux/docker-ce/ubuntu/

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

希望对您有帮助!

这篇关于Docker-mkdir只读文件系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆