Giter Club home page Giter Club logo

Comments (13)

Reanmachine avatar Reanmachine commented on July 23, 2024

Having this issue myself:

ERROR: for balance-server  Cannot start service balance-server: 
oci runtime error: rootfs_linux.go:53: mounting
  "/var/lib/docker/aufs/mnt/148ee28f5388813cad2c9573d86884622802447e8f5c0b04eba36ce38fed3bf7/opt/balance/package.json" 
to rootfs
  "/var/lib/docker/aufs/mnt/148ee28f5388813cad2c9573d86884622802447e8f5c0b04eba36ce38fed3bf7" 
caused "not a directory"

Docker:

> docker version
Client:
 Version:      1.12.0
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   8eab29e
 Built:        Thu Jul 28 21:15:28 2016
 OS/Arch:      windows/amd64

Server:
 Version:      1.12.0
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   8eab29e
 Built:        Thu Jul 28 21:15:28 2016
 OS/Arch:      linux/amd64

Docker Compose:

> docker-compose version
docker-compose version 1.8.0, build d988a55
docker-py version: 1.9.0
CPython version: 2.7.11
OpenSSL version: OpenSSL 1.0.2d 9 Jul 2015

Windows:

Windows Version

from for-win.

oparoz avatar oparoz commented on July 23, 2024

Same problem here when using compose.

It fails to mount those files

    volumes:
      - ./nginx.conf:/etc/nginx/nginx.conf:ro
      - ./config.php:/var/www/html/config/config.php

Tried both with stable and beta24.

from for-win.

maltyxx avatar maltyxx commented on July 23, 2024

+1 me too

from for-win.

friism avatar friism commented on July 23, 2024

Hm, this works for me:

C:\tmp> cat .\test.txt
hello
C:\tmp> docker run --rm -v c:/tmp/test.txt:/data/test-foo.txt alpine cat /data/test-foo.txt
hello
C:\tmp>

Is this a compose-specific problem?

from for-win.

dgageot avatar dgageot commented on July 23, 2024

@oparoz @maltyxx @matevarga Could you please test with Beta25 that was released two days ago. It contains some fixes related to file mounting. If you still have the issue, could you confirm:

  • That it works with docker cli like it works for @friism
  • It still fails with Compose. In which case a simple compose file to reproduce the issue would be nice.

from for-win.

oparoz avatar oparoz commented on July 23, 2024

Here is an example which still doesn't work:
https://github.com/otbe/nc-docker-fpm/blob/master/example/docker-compose.yml

>docker --version
Docker version 1.12.1, build 23cf638, experimental
>docker-compose --version
docker-compose version 1.8.0, build d988a55

from for-win.

oparoz avatar oparoz commented on July 23, 2024

And regarding the test

>cat .\test.txt
'cat' is not recognized as an internal or external command,
operable program or batch file.

Not sure if that's relevant, but I created the file manually and then

>docker run --rm -v test.txt:/data/test-foo.txt alpine cat /data/test-foo.txt
cat: read error: Is a directory
[15:58:13.883][ApiProxy       ][Info   ] Rewrote mount ./test.txt:/data/test-foo.txt (volumeDriver=) to test.txt:/data/test-foo.txt
[15:58:13.905][ApiProxy       ][Info   ] Failed to Walk to [snapshots 2e2f1dfbcaec1aa6b57bb05a7347b542c844fe0b ro com.docker.driver.amd64-linux proxy http] 9p: No such file or directory
[15:58:13.913][ApiProxy       ][Info   ] Failed to Walk to [snapshots 2e2f1dfbcaec1aa6b57bb05a7347b542c844fe0b ro com.docker.driver.amd64-linux proxy https] 9p: No such file or directory
[15:58:13.922][ApiProxy       ][Info   ] Failed to Walk to [snapshots 2e2f1dfbcaec1aa6b57bb05a7347b542c844fe0b ro com.docker.driver.amd64-linux proxy exclude] 9p: No such file or directory

from for-win.

oparoz avatar oparoz commented on July 23, 2024

Same problem on beta26

from for-win.

gegana avatar gegana commented on July 23, 2024

Same problem here

`version: '2'
services:
    helloworld-service:
        container_name: helloworldapp
        build: .

    reverse-proxy:
        container_name: reverse-proxy
        image: nginx
        ports:
         - "9090:8080"
        volumes:
         - ./nginx.conf:/etc/nginx/nginx.conf:ro`

this also did not work for me

C:\tmp> cat .\test.txt
hello
C:\tmp> docker run --rm -v c:/tmp/test.txt:/data/test-foo.txt alpine cat /data/test-foo.txt
hello
C:\tmp>

cat: read error: Is a directory

from for-win.

oparoz avatar oparoz commented on July 23, 2024

Apparently fixed on beta27

from for-win.

dgageot avatar dgageot commented on July 23, 2024

Hi everyone, is it fixed for all of you with Beta27?

I'm going to tag the ticket as "will be closed" and will close it in a week of so if nobody complains :-) Thanks again for your reports!

from for-win.

dgageot avatar dgageot commented on July 23, 2024

Hi, I'm closing the issue has said a week ago. Feel free to reopen if the issue is still there, of course!

from for-win.

docker-robott avatar docker-robott commented on July 23, 2024

Closed issues are locked after 30 days of inactivity.
This helps our team focus on active issues.

If you have found a problem that seems similar to this, please open a new issue.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows.
/lifecycle locked

from for-win.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.