Bug 1316651 - Docker run read-only: System error: read-only file system
Summary: Docker run read-only: System error: read-only file system
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: docker
Version: 7.2
Hardware: x86_64
OS: Linux
unspecified
medium
Target Milestone: rc
: ---
Assignee: Daniel Walsh
QA Contact: atomic-bugs@redhat.com
URL:
Whiteboard: docker-autotest:0.8.5:docker_cli/top/...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-03-10 16:45 UTC by Chris Evich
Modified: 2019-03-06 00:58 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2016-05-12 15:17:25 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2016:1034 0 normal SHIPPED_LIVE Moderate: docker security, bug fix, and enhancement update 2016-05-12 19:15:01 UTC

Description Chris Evich 2016-03-10 16:45:36 UTC
Description of problem:
With the most updated RHEL and Atomic, running an image with --read-only fails and returns an error.

Version-Release number of selected component (if applicable):

# atomic host status
  TIMESTAMP (UTC)         VERSION     ID             OSNAME               REFSPEC                                                        
* 2016-03-01 01:35:21     7.2.2-2     8b2cf24b42     rhel-atomic-host     rhel-atomic-host-ostree:rhel-atomic-host/7/x86_64/standard     

# docker version
Client:
 Version:      1.8.2-el7
 API version:  1.20
 Package Version: docker-1.8.2-10.el7.x86_64
 Go version:   go1.4.2
 Git commit:   a01dc02/1.8.2

How reproducible:
Trivial

Steps to Reproduce:
1. # docker run --read-only --name sleeper registry.access.redhat.com/rhel7/rhel:latest sleep 1m

Actual results:
Timestamp: 2016-03-10 16:42:44.672730324 +0000 UTC
Code: System error

Message: read-only file system

Frames:
---
0: setupRootfs
Package: github.com/opencontainers/runc/libcontainer
File: rootfs_linux.go@39
---
1: Init
Package: github.com/opencontainers/runc/libcontainer.(*linuxStandardInit)
File: standard_init_linux.go@52
---
2: StartInitialization
Package: github.com/opencontainers/runc/libcontainer.(*LinuxFactory)
File: factory_linux.go@242
---
3: initializer
Package: github.com/docker/docker/daemon/execdriver/native
File: init.go@35
---
4: Init
Package: github.com/docker/docker/pkg/reexec
File: reexec.go@26
---
5: main
Package: main
File: docker.go@19
---
6: main
Package: runtime
File: proc.go@63
---
7: goexit
Package: runtime
File: asm_amd64.s@2232
Error response from daemon: Cannot start container 3e3fdabf598d6a590d690a94947fe4c6adc15ec17c84f70bc1415eb3e98bf98e: [8] System error: read-only file system


Expected results:
Container should start, sleep, then exit gracefully after one minute

Comment 2 Daniel Walsh 2016-03-10 17:40:06 UTC
Hopefully this is fixed in docker-1.9.  I don't see the problem in docker-1.10

Comment 3 Chris Evich 2016-03-10 18:03:38 UTC
(In reply to Daniel Walsh from comment #2)
> Hopefully this is fixed in docker-1.9.  I don't see the problem in
> docker-1.10

Yes, this test does not fail in docker 1.9.1:
https://url.corp.redhat.com/c49936f
(internal CI results)

Comment 4 Daniel Walsh 2016-03-10 18:37:28 UTC
Fixed in docker-1.9.

Comment 6 Luwen Su 2016-05-01 11:10:21 UTC
Per comment#3, move to verified

Comment 8 errata-xmlrpc 2016-05-12 15:17:25 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHSA-2016-1034.html


Note You need to log in before you can comment on or make changes to this bug.