Nerdctl WSL linux bind mount not working in docker-compose
See original GitHub issueRancher Desktop Version
Version: 1.0.0-beta.1
Rancher Desktop K8s Version
1.22.5
What operating system are you using?
Other (specify below)
Operating System / Build Version
Windows 10 Pro, WSL2 debian
What CPU architecture are you using?
x64
Linux only: what package format did you use to install Rancher Desktop?
No response
Windows User Only
No response
Actual Behavior
My volume bind mounts in the docker-compose are ignored and cause the app to crash.
Steps to Reproduce
- create the following file structure:
- docker-compose.yml
- myapp/
- - volume/
- The docker-compose should look like this:
version: "3.9"
services:
frontend:
image: node:lts
volumes:
- ./myapp/volume:/home/node/app
- run
nerdctl compose -f ./docker-compose.yml up --build
Result
I get the following output:
Expected Behavior
This should successfully run and build a container.
Additional Information
No response
Issue Analytics
- State:
- Created 2 years ago
- Comments:14 (6 by maintainers)
Top Results From Across the Web
Get the error when run "compose up" with nerdctl
I do not know if it is a problem related create a volume in docker-compose.yaml in a system with WSL, if it is...
Read more >Docker WSL2 : error mounting -docker compose
Hello, I am trying to get openrouteservice to run on my local machine. I am using WSL2 and I run everything on my...
Read more >Docker compose volume syntax valid for Windows and Linux
Yes. Just use ./ for you current directory that the Docker-compose file is in. Your "working directory" for the compose file is just...
Read more >Customize the Docker extension - Visual Studio Code
json creates and starts Docker containers using the Docker Compose command line (CLI). The task can be used by itself, or as part...
Read more >Should We Replace Docker Desktop With Rancher Desktop?
In my opinion, it completely solves the issues for volume mounts on the ... nerdctl (Docker compatible-ish cli), and Helm in both WSL...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@maybeec The docker-compose integration will be included in the 1.1.0 release; for now you have to install it manually.
Hi @evertonlperes and everyone, I got the same error you mentioned:
Seems that is always looking for a path related to rancher mount directory. This is the docker compose i am trying to run: