Comments (13)
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:
from for-win.
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.
+1 me too
from for-win.
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.
@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.
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.
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.
Same problem on beta26
from for-win.
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.
Apparently fixed on beta27
from for-win.
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.
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.
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)
- Docker Desktop - WSL update failed even after updating wsl from comman line (windows) HOT 6
- win11 installing docke,white page appears HOT 2
- After the update, large-scale disk occupancy HOT 1
- Loading chunk 474 failed. (timeout: app://dd/474.bundle.js)
- My images and containers are gone HOT 2
- Unable to write a txt file using ECHO on command prompt of a nano 2022
- Docker Desktop distro installation failed after upgradation to docker desktop 4.32.0 HOT 12
- Host Networking doesn't fully support full 127.0.0.0/8 range
- After "docker compose up -d", docker can build and create a container but can't run
- Error when starting Docker Desktop: `Ensuring Docker CLI uses the Docker Desktop context`
- Docker Desktop update to 4.32.0: Running wsl distro proxy in Ubuntu-22.04 distro: exit status 1 HOT 25
- Error when starting Docker Desktop: Ensuring Docker CLI uses the Docker Desktop context HOT 1
- Cannot update Docker Desktop for Windows (WSL 2) HOT 2
- Containers-Images hosted in linux are not appearing in windows - Docker desktop
- An unexpected error occurred - "connect ENOENT \\.\pipe\errorReporter" HOT 8
- Docker Desktop - Hyper-V setup error HOT 1
- Switching from linux container to windows container
- Docker does not start HOT 1
- docker randomly fails to properly expose ports
- Error response from daemon: Ports are not available: exposing port TCP 127.0.0.1:5432 -> 0.0.0.0:0: listen tcp 127.0.0.1:5432: bind: An attempt was made to access a socket in a way forbidden by its access permissions.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from for-win.