OCI运行时错误docker – 组成不是一个目录

我是新来的docker工人,目前正在努力解决以下问题:

在dockerterminal启动命令后:

OAUTH_CLIENT_ID=<...> OAUTH_CLIENT_SECRET=<...> OAUTH_URL_CALLBACK=http://192.168.99.100/api/v1/auth/login docker-compose -- file test/docker-compose.yml up 

我收到以下错误信息:

 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/29c14c514916cf09070c6dd084bee55fa899d9 79b3f7b9521f1ab25e3a8232a0\\\\\\\" at \\\\\\\"/mnt/sda1/var/lib/docker/aufs/mnt/29c14c514916cf09070c6dd084bee55fa899d9 79b3f7b9521f1ab25e3a8232a0/etc/nginx/nginx.conf\\\\\\\" caused \\\\\\\"not a directory\\\\\\\"\\\"\"\n" [31mERROR[0m: Encountered errors while bringing up the project. 

docker-compose.yml启动几个docker容器并包含以下平台设置:

 platform: image: nginx:latest depends_on: - container1 - container2 - container3 - container4 volumes: - "./nginx.conf:/etc/nginx/nginx.conf:ro" - "../client:/etc/nginx/html" ports: - "80:80" 

docker版本

 $ 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 

会为任何想法感到高兴。 到目前为止,我的search没有成功。

好像你想要将一个文件挂载到一个文件。 我记得你的码头版本是不允许的。 你必须将你的nginx.conf移到你的Dockerfile中

Dockerfile:

 .... ADD nginx.conf /tmp/ RUN mv /tmp/nginx.conf /etc/nginx/nginx.conf && \ .... 

这应该适合你。 如果不显示您的下一个错误代码