Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker --mount command fails on Windows but --volume does not #6900

Open
evilhamsterman opened this issue May 15, 2024 · 0 comments
Open

docker --mount command fails on Windows but --volume does not #6900

evilhamsterman opened this issue May 15, 2024 · 0 comments
Labels
kind/bug Something isn't working triage/next-candidate Discuss if it should be moved to "Next" milestone

Comments

@evilhamsterman
Copy link

Actual Behavior

Trying to start a docker container following the exact line from the documentation https://docs.rancherdesktop.io/tutorials/using-persistent-storage/ works with the volume example but not the mount example

Steps to Reproduce

In Powershell on Windows run the mount and volume examples as from the documentation, ensure you have a src file in your current directory

docker container run --rm -it -v ${pwd}/src:/app/src alpine:latest /bin/sh
docker container run --rm -it --mount=type=bind,source=${pwd}/src,target=/app/src alpine:latest /bin/sh

Result

The volume example works fine and you are shortly connected to an shell. The mount example fails with the error

docker: Error response from daemon: invalid mount config for type "bind": invalid mount path: '${pwd}/src' mount path must be absolute.
See 'docker run --help'.

Expected Behavior

The mount succeeds and you are connected to a shell

Additional Information

This affects devcontainers in VSCode that use mounts

Rancher Desktop Version

1.13.1

Rancher Desktop K8s Version

NA

Which container engine are you using?

moby (docker cli)

What operating system are you using?

Windows

Operating System / Build Version

Windows 11 23H2

What CPU architecture are you using?

x64

Linux only: what package format did you use to install Rancher Desktop?

None

Windows User Only

I have Cortex XDR and Tailscale on one machine but I get the same results on a separate machine without those applications.

@evilhamsterman evilhamsterman added the kind/bug Something isn't working label May 15, 2024
@gunamata gunamata added the triage/next-candidate Discuss if it should be moved to "Next" milestone label May 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/next-candidate Discuss if it should be moved to "Next" milestone
Projects
None yet
Development

No branches or pull requests

2 participants