简体   繁体   English

拉取 Docker 映像时出现“只读文件系统”错误

[英]"read-only file system" error when pulling Docker image

I am trying to install Splash for Scrapy.我正在尝试为 Scrapy 安装Splash

According to itsinstallation documentation , first of all Docker has to be installed.根据它的安装文档,首先要安装Docker This has been successfully done.这已成功完成。

Then I launch the Docker Quickstart Terminal and I try to follow the second step and pull the image.然后我启动 Docker 快速启动终端并尝试按照第二步拉取图像。 This is when the issue arrives:这是问题来的时候:

$ docker pull scrapinghub/splash

After pulling, extracting and downloading;拉取、解压、下载后; I receive the following message:我收到以下消息:

failed to register layer: Untar re-exec error: exit status 1: output: write /usr/share/fonts/truetype/arphic-bsmi00lp/bsmi00lp.ttf: read-only file system注册层失败:解压缩重新执行错误:退出状态1:输出:写入/usr/share/fonts/truetype/arphic-bsmi00lp/bsmi00lp.ttf:只读文件系统

Attempts尝试

If I follow the documentation from GitHub :如果我遵循来自 GitHub文档

$ docker run -p 8050:8050 scrapinghub/splash

I get the same error:我犯了同样的错误:

docker: open /mnt/sda1/var/lib/docker/tmp/GetImageBlob849866419: read-only file system docker:打开/mnt/sda1/var/lib/docker/tmp/GetImageBlob849866419:只读文件系统

I also found some other threads talking about similar issues, but I did not find any solution, or at least I did not understand it.我还发现了一些其他线程在谈论类似的问题,但我没有找到任何解决方案,或者至少我不明白。

I am not familiar with Virtual Machines or Virtual Boxes, so maybe I am just doing a very simple mistake.我不熟悉虚拟机或虚拟盒子,所以也许我只是犯了一个非常简单的错误。

Any ideas to solve the problem?有什么想法可以解决这个问题吗?

Additional details额外细节

$ docker info

Containers: 1
 Running: 0
 Paused: 0
 Stopped: 1
Images: 0
Server Version: 1.11.2
Storage Driver: aufs
 Root Dir: /mnt/sda1/var/lib/docker/aufs
 Backing Filesystem: extfs
 Dirs: 0
 Dirperm1 Supported: true
Logging Driver: json-file
Cgroup Driver: cgroupfs
Plugins: 
 Volume: local
 Network: host bridge null
Kernel Version: 4.4.12-boot2docker
Operating System: Boot2Docker 1.11.2 (TCL 7.1); HEAD : a6645c3 - Wed Jun  1 22:59:51 UTC 2016
OSType: linux
Architecture: x86_64
CPUs: 1
Total Memory: 1.955 GiB
Name: default
ID: QXKR:FRMB:NMLI:RLSF:K7PT:RXWE:44MP:6NQN:ISFO:GNWR:NBGO:AMNL
Docker Root Dir: /mnt/sda1/var/lib/docker
Debug mode (client): false
Debug mode (server): true
 File Descriptors: 12
 Goroutines: 30
 System Time: 2016-06-10T15:09:55.50550284Z
 EventsListeners: 0
Registry: https://index.docker.io/v1/
Labels:
 provider=virtualbox

I cannot give an explanation of what was wrong, but I can explain what I did to make it work:我无法解释出了什么问题,但我可以解释我为使其工作所做的工作:

  1. Restart.重新开始。
  2. Go through the steps of the documentation again.再次执行文档的步骤。

In my case, running docker-machine stop and then docker-machine start solved the problem.在我的情况下,运行docker-machine stop然后docker-machine start解决了这个问题。

I had to run eval $(docker-machine env) after, but that's it.我不得不在之后运行eval $(docker-machine env) ,但就是这样。

这个问题是因为我的电脑存储空间不足,我清理了驱动器 C:安装了 docker 并重新启动了 docker

I got the error as well, the problem was not that I had a read-only file system - I had a FULL file system.我也遇到了错误,问题不在于我有一个只读文件系统——我有一个完整的文件系统。 Try checking that the place docker is trying to pull and extract to has enough room for the download.尝试检查 docker 尝试拉取和解压缩的位置是否有足够的空间供下载。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 docker-compose pull 错误:“创建临时租约时出错:只读文件系统” - docker-compose pull Error: "error creating temporary lease: read-only file system" Anaconda3 pip安装错误:只读文件系统 - Anaconda3 pip install error: Read-only file system Mac上的最新docker 17.12.0-ce-mac46(21698),hypervisor文件系统为只读 - The latest docker on mac, 17.12.0-ce-mac46 (21698), hypervisor file system is read-only 在 Mac 上使用 Putty 尝试 mkdir /root/.local/share 时的只读文件系统 - Read-only file system when attempting mkdir /root/.local/share on Mac with Putty 在 MacOs 上创建目录“/dotenv”,只读文件系统 - Create directory “/dotenv” on MacOs, Read-only file system 在 macOS Catalina 中禁用 SIP 的只读文件系统 - Read-only file system" with SIP disabled in macOS Catalina 服务'nginx'无法构建:…只读文件系统 - Service 'nginx' failed to build: … read-only file system 无法安装kext,“只读文件系统” - Can't install kext, "Read-only file system" 无法在 Mac Catalina 上的 VSCode 中创建/保存任何新文件并不断收到只读文件系统错误 - Can't create/save any new files in VSCode on Mac Catalina and keep getting a read-only file system error 检测应用程序是否是从OS X上的只读文件系统启动的 - Detecting whether an application was launched from a read-only file system on OS X
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM