[英]"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:只读文件系统
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?有什么想法可以解决这个问题吗?
$ 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:我无法解释出了什么问题,但我可以解释我为使其工作所做的工作:
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.