Docker Community Forums

Share and learn in the Docker community.

Docker image building "read-only" error


(Anthony R. Colombo) #1

Hello! I am using a MacOSX yosemite, and have docker and boot2docker working. I am receving read-only errors when building and running a docker image

nrt3509-1:docker_kallisto Ramsingh$ docker version
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.4.2
Git commit (client): 7c8fca2
OS/Arch (client): darwin/amd64
Server version: 1.6.2
Server API version: 1.18
Go version (server): go1.4.2
Git commit (server): 7c8fca2
OS/Arch (server): linux/amd64

I recently built a small image successfully shown below

nrt3509-1:docker_kallisto Ramsingh$ docker images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
arcolombo/artemis v3 8e6d97716a31 29 minutes ago 391.6 MB
ubuntu latest 07f8e8c5e660 13 days ago 188.3 MB

when I try to push the image I receive an error below for read only

nrt3509-1:docker_kallisto Ramsingh$ docker push arcolombo/artemis:v3
The push refers to a repository [arcolombo/artemis] (len: 1)
8e6d97716a31: Buffering to Disk
FATA[0000] Error pushing to registry: mkdir /mnt/sda1/var/lib/docker/graph/_tmp/c2d8f6cf75334ad744ef60adc482537bbcab94f8a98aed39c303575a2bccb886: read-only file system

when I try to run the hello-world test image from the docker website, I receive an error

nrt3509-1:docker_kallisto Ramsingh$ docker run hello-world
Unable to find image ‘hello-world:latest’ locally
latest: Pulling from hello-world
a8219747be10: Pulling fs layer
a8219747be10: Error downloading dependent layers
91c95931e552: Error pulling image (latest) from hello-world, endpoint: https://registry-1.docker.io/v1/, Mktemp failed: mkdir /mnt/sda1/var/lib/docker/graph/_tm91c95931e552: Error pulling image (latest) from hello-world, Mktemp failed: mkdir /mnt/sda1/var/lib/docker/graph/_tmp/9c89d1e94f6c369b0c40be8751c3d5233a20043a97FATA[0010] Error pulling image (latest) from hello-world, Mktemp failed: mkdir /mnt/sda1/var/lib/docker/graph/_tmp/9c89d1e94f6c369b0c40be8751c3d5233a20043a975b04aeec29a10dcbf0a217: read-only file system

when I try to build a more complex docker file, quite larger I receive the same error.

Sending build context to Docker daemon 7.839 GB
Sending build context to Docker daemon
FATA[0206] Error response from daemon: mkdir /mnt/sda1/var/lib/docker/tmp/docker-build558199792: read-only file system

what causes the kernel and daemon to have this read only error?


(Bussiere) #2

Same here , On Yosemite

root@boot2docker:/Users/bussiere/Documents# docker load < choual.tar
FATA[0902] Error response from daemon: mkdir /mnt/sda1/var/lib/docker/tmp/docker-import-660441420: read-only file system


(Anthony R. Colombo) #3

could you put some of your troubleshooting steps? I still could not resolve my issue. thank you again. We can solve this together I hope.


(Tagadajones) #4

Hi ! Same error by there, some months later it seems. In case of you managed to fix this error, any help would be really welcome and useful !
Thanks a lot !