-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Relative paths with 'podman kube play' not working on Windows #25437
Comments
I investigated this more. In a unstable Debian WSL2 machine
with Podman 5.4.0 running on the Debian WSL2 machine instead of the Default Podman Machine, the minimal working example provided in the first report work as expected. My understanding is that when accessing Podman from Windows or accessing Podman from another WSL distribution, the podman info output
|
The kube api accepts the raw bytes of the kube yaml file. The remote client does not parse the file (and shouldn't have to). The podman service then sees a relative path and resolves it based on its own cwd (likely |
Issue Description
Based on #17177, use of relative paths is supported by
podman kube play
but I'm encounteringSteps to reproduce the issue
cd $(mktemp -d)
mkdir html
nginx.kube
containingnginx.kube
containingpodman kube play --replace nginx.kube
Describe the results you received
Describe the results you expected
The directory
html
is bind mounted to the container.podman info output
Podman in a container
Yes
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
I'm running Podman Desktop on Windows with WSL2 and the default Podman Machine. From Podman Desktop GUI, it is possible to successfully use
I want to use a relative path from the
.kube
file to make the developer experience across machines more easy as it is with Docker Compose where the instructions to the user is only "rundocker compose up
".Additional information
No response
The text was updated successfully, but these errors were encountered: