I am trying to run the service using docker-compose up with the following configuration:
web:
image: nginx
ports:
- "9090:80"
volumes:
- ./code:/code
- ./default.conf:/etc/nginx/conf.d/default.conf
but an error is thrown:
ERROR: for web Cannot start service web: invalid header field value “oci runtime error: container_linux.go:247: starting container process caused “process_linux.go:359: container init caused \“rootfs_linux.go:53: mounting \\\”/c/tmp/test2/default.conf\\\” to rootfs \\\”/mnt/sda1/var/lib/docker/aufs/mnt/c8ee8e1e531ca7ea1cad17522fd4aaffd5684caaaf9bcc72fced0546e83784ab\\\" at \\\"/mnt/sda1/var/lib/docker/aufs/mnt/c8ee8e1e531ca7ea1cad17522fd4aaffd5684caaaf9bcc72fced0546e83784ab/etc/nginx/conf.d/default.conf\\\" caused \\\“not a directory\\\”\""\n"
e[31mERRORe[0m: Encountered errors while bringing up the project.
Updated mac today and got a similar problem
Mac OSX Version 10.11.6
docker version 1.12.2
[~]$ dc up
Starting 6cf5cc5631fe_app
ERROR: for quay Cannot start service quay: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"process_linux.go:359: container init caused \\\"rootfs_linux.go:53: mounting \\\\\\\"/path/to/file/cfssl/ca.pem\\\\\\\" to rootfs \\\\\\\"/mnt/sda1/var/lib/docker/aufs/mnt/8b3dfb31c15f9978a399ab01aecfccc647777b1382a0ca81ec13e00ca2292014\\\\\\\" at \\\\\\\"/mnt/sda1/var/lib/docker/aufs/mnt/8b3dfb31c15f9978a399ab01aecfccc647777b1382a0ca81ec13e00ca2292014/usr/local/share/ca-certificates/quay_root.crt\\\\\\\" caused \\\\\\\"not a directory\\\\\\\"\\\"\"\n"
ERROR: Encountered errors while bringing up the project.
docker run --rm -v /usr/share/zoneinfo/Europe/Berlin:/etc/localtime:ro nginx:alpine
C:\Program Files\Docker\Docker\Resources\bin\docker.exe: Error response from daemon: invalid header field value “oci runtime error: container_linux.go:247: starting container process caused "process_linux.go:359: container init caused \"rootfs_linux.go:53: mounting \\\"/usr/share/zoneinfo/Europe/Berlin\\\" to rootfs \\\"/var/lib/docker/aufs/mnt/4aa42ecc259b16621e41805f75d675607774135ab8ad6ec27daf9ea1bbe00c2e\\\" at \\\"/var/lib/docker/aufs/mnt/4aa42ecc259b16621e41805f75d675607774135ab8ad6ec27daf9ea1bbe00c2e/etc/localtime\\\" caused \\\"not a directory\\\"\""\n”.
on
$ docker version
Client:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built: Thu Oct 27 00:09:21 2016
OS/Arch: windows/amd64
Experimental: true
Server:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built: Thu Oct 27 00:09:21 2016
OS/Arch: linux/amd64
Experimental: true
ERROR: for platform Cannot start service platform: invalid header field value "oci runtime error: container_linux.go:247: starting container process caused \"process_linux.go:359: container init caused \\\"rootfs_linux.go:53: mounting \\\\\\\"/c/users/m_konk01/documents/GitHub/o2r-platform/test/nginx.conf\\\\\\\" to rootfs \\\\\\\"/mnt/sda1/var/lib/docker/aufs/mnt/6f7595442c5a48b570c9ef3dbaf9d0b648eef4d8f643145c150daec95a73cecb\\\\\\\" at \\\\\\\"/mnt/sda1/var/lib/docker/aufs/mnt/6f7595442c5a48b570c9ef3dbaf9d0b648eef4d8f643145c150daec95a73cecb/etc/nginx/nginx.conf\\\\\\\" caused \\\\\\\"not a directory\\\\\\\"\\\"\"\n" e[31mERRORe[0m: Encountered errors while bringing up the project.
and
$ docker version Client:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built: Wed Oct 26 23:26:11 2016
OS/Arch: windows/amd64
Server:
Version: 1.12.3
API version: 1.24
Go version: go1.6.3
Git commit: 6b644ec
Built: Wed Oct 26 23:26:11 2016
OS/Arch: linux/amd64
I tried the “read-only” suggestion but it didn’t work.