简体   繁体   English

服务'nginx'无法构建:…只读文件系统

[英]Service 'nginx' failed to build: … read-only file system

I'm on OS X El Capitan. 我在OS X El Capitan上。

The project is here . 该项目在这里

➜  docker docker-compose version
docker-compose version 1.6.0, build d99cad6
docker-py version: 1.7.0
CPython version: 2.7.9
OpenSSL version: OpenSSL 1.0.1j 15 Oct 2014

➜  docker docker version
Client:
 Version:      1.10.2
 API version:  1.22
 Go version:   go1.5.3
 Git commit:   c3959b1
 Built:        Mon Feb 22 22:37:33 2016
 OS/Arch:      darwin/amd64

Server:
 Version:      1.11.2
 API version:  1.23
 Go version:   go1.5.4
 Git commit:   b9f10c9
 Built:        Wed Jun  1 21:20:08 2016
 OS/Arch:      linux/amd64

Detailed log: 详细日志:

➜  django2 git:(master) docker-compose build
redis uses an image, skipping
postgres uses an image, skipping
Building web
Step 1 : FROM python:3.5-onbuild
3.5-onbuild: Pulling from library/python
51f5c6a04d83: Already exists
65e9ddd8bd7a: Already exists
c41545ebedf5: Already exists
04aed1875617: Already exists
cf8af6bdf113: Already exists
b1dde6937fab: Pull complete
c8bc9f75687c: Pull complete
b8e93735119c: Pull complete
Digest: sha256:64873fca593ef95e3e6ff2759f1be8850e2df13c4abc379c28d876fff80bd491
Status: Downloaded newer image for python:3.5-onbuild
# Executing 3 build triggers...
Step 1 : COPY requirements.txt /usr/src/app/
Step 1 : RUN pip install --no-cache-dir -r requirements.txt
 ---> Running in 72d7552b9c02
Collecting Django==1.8.1 (from -r requirements.txt (line 1))
  Downloading Django-1.8.1-py2.py3-none-any.whl (6.2MB)
Collecting gunicorn==19.3.0 (from -r requirements.txt (line 2))
  Downloading gunicorn-19.3.0-py2.py3-none-any.whl (110kB)
Collecting psycopg2==2.6 (from -r requirements.txt (line 3))
  Downloading psycopg2-2.6.tar.gz (367kB)
Collecting redis==2.10.3 (from -r requirements.txt (line 4))
  Downloading redis-2.10.3.tar.gz (86kB)
Installing collected packages: Django, gunicorn, psycopg2, redis
  Running setup.py install for psycopg2: started
    Running setup.py install for psycopg2: finished with status 'done'
  Running setup.py install for redis: started
    Running setup.py install for redis: finished with status 'done'
Successfully installed Django-1.8.1 gunicorn-19.3.0 psycopg2-2.6 redis-2.10.3
Step 1 : COPY . /usr/src/app
 ---> f802f2dfd11d
Removing intermediate container 5bb1297979d0
Removing intermediate container 72d7552b9c02
Removing intermediate container 95570b5a7fd9
Successfully built f802f2dfd11d
Building nginx
Step 1 : FROM tutum/nginx
latest: Pulling from tutum/nginx
faecf96fd5ab: Downloading [==================================================>] 28.36 MB/28.36 MB
995977506e98: Download complete
efb63fb8dcb6: Download complete
a3ed95caeb02: Download complete
fc9f65f1d092: Download complete
a69b26be3eeb: Download complete
292e9d346afc: Download complete
2642b1ce8f09: Download complete
ERROR: Service 'nginx' failed to build: write /mnt/sda1/var/lib/docker/tmp/GetImageBlob730892159: read-only file system

ERROR: Service 'nginx' failed to build: write /mnt/sda1/var/lib/docker/tmp/GetImageBlob730892159: read-only file system 错误:服务“ nginx”生成失败:写入/ mnt / sda1 / var / lib / docker / tmp / GetImageBlob730892159:只读文件系统

Take a look for the 'mount' output, is your /mnt/sda1 directory mounted with read-only option? 看一下“ mount”输出,您的/ mnt / sda1目录是否以只读选项安装?

Try to run: 尝试运行:

mount -o remount,rw /mnt/sda1

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

相关问题 Anaconda3 pip安装错误:只读文件系统 - Anaconda3 pip install error: Read-only file system 无法安装kext,“只读文件系统” - Can't install kext, "Read-only file system" 错误:EROFS:只读文件系统 [MAC] - Error: EROFS: read-only file system [MAC] 在 MacOs 上创建目录“/dotenv”,只读文件系统 - Create directory “/dotenv” on MacOs, Read-only file system 拉取 Docker 映像时出现“只读文件系统”错误 - "read-only file system" error when pulling Docker image 在 macOS Catalina 中禁用 SIP 的只读文件系统 - Read-only file system" with SIP disabled in macOS Catalina 检测应用程序是否是从OS X上的只读文件系统启动的 - Detecting whether an application was launched from a read-only file system on OS X 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 OS上编辑/System/Library/OpenSSL/openssl.cnf文件(只读) - Cannot edit /System/Library/OpenSSL/openssl.cnf file on Mac OS (read-only) docker-compose pull 错误:“创建临时租约时出错:只读文件系统” - docker-compose pull Error: "error creating temporary lease: read-only file system"
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM