-
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
Multiple build context fails on Windows #18840
Comments
Different, but related issue #10100 with a similar file system issue and notes on |
I'm not a RedHat subscriber, but the paywall solution behind this article may prove useful if someone is a subscriber: |
WorkaroundWhile the above is still a valid bug, a work-around to enable multi-context builds is to copy the files / directories into a tagged image and then use the aliased container build context to reference those files. Example:
"./shared/Containerfile"
"./multi-context-build/Containerfile"
Astute readers may note there are simpler methods to structure the volume and to |
@flouthoc PTAL |
A friendly reminder that this issue had no activity for 30 days. |
Facing with same error:
when I provided
Windows 10. podman.exe version 4.7.1. |
Seems handling of Windows paths is broken for |
This issue has been fixed when the machine provider is WSL (the default) but it's still failing when the machine provider is Hyper-V. I am closing it as there is an Hyper-V dedicated issue to track that problem. |
Issue Description
Using the argument
--build-context
fails on Windows with Podman + WSL.With debug logging...
Steps to reproduce the issue
Steps to reproduce the issue
--build-context
argumentBoth
cmd
and "Git BASH" produce errors. Using both helps rule out "pure" Linux path vs. Windows path issues.Describe the results you received
Given a file and directory structure of:
Single, alternative build context
Where, "./Containerfile" contains steps for a single, alternative context build:
Using
cmd
...Using "Git BASH"...
Multiple context build
Where, "./Containerfile" contains steps for a multiple context build:
Using
cmd
...Using "Git BASH"...
... both
cmd
and "Git BASH" fail on the first entry, but this is included as an important use case that proves 1) multiple build contexts as well as a path up and back down through a different directory structure.Describe the results you expected
Files get copied successfully from each aliased build context.
podman info output
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Windows System
System specifications
Additional information
No response
The text was updated successfully, but these errors were encountered: