-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Podman remote windows cannot mount volume: invalid container path "/data", must be an absolute path #10900
Comments
Theory: we're probably validating client-side, using the Go filepath library, which is using Windows path standards instead of Linux, so expecting drive letters and backslash separators. Easiest solution is probably to move the validation to the server. |
A friendly reminder that this issue had no activity for 30 days. |
@flouthoc PTAL |
@rhatdan So its recommended to use path.IsAbs() instead of filtepath.IsAbs() for destination checks. Since filepath.IsAbs() will use path_windows on windows host but destination path inside the containers should always be of *nix type. Reference: |
but we should also move this to server side as @mheon suggested but above PR fixes the use case. |
Can someone double check if this is fixed in 3.4.4? I still get this error on windows (remote client) and linux (via TCP). |
@asbachb Is your |
|
@flouthoc Ah thanks for clarification. I guess the error message was kind of confusing for me as it indicates a problem on guest side. |
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Cannot create a container with mounted volume, podman is validating destination path using absolute path, on UNIX system absolute path always starts with a slash
/
, but on windows, it started with a drive letter. so podman always give an errorError: invalid container path "/data", must be an absolute path
Steps to reproduce the issue:
Create and run container using podman remote windows
podman run -it --rm -v /mnt/i/source:/data fedora bash
Describe the results you received:
Got an error:
Describe the results you expected:
container should be running and
/mnt/i/soruce
mounted to/data
Additional information you deem important (e.g. issue happens only occasionally):
Output of
podman version
:Output of
podman info --debug
:Have you tested with the latest version of Podman and have you checked the Podman Troubleshooting Guide? (https://github.com/containers/podman/blob/master/troubleshooting.md)
No
Additional environment details (AWS, VirtualBox, physical, etc.):
Podman server running on VirtualBox using Centos Stream 8
The text was updated successfully, but these errors were encountered: