-
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
[Bug]: vscode devcontainers "features" feature fails on Windows and MacOS #17313
Comments
Thanks for reaching out, @JustinGrote! @flouthoc PTAL |
I have the same issue, also probably the same as microsoft/vscode-remote-release#7408. |
A friendly reminder that this issue had no activity for 30 days. |
See also here: microsoft/vscode-remote-release#8103 I'm running into this as well using the latest version of podman on Windows (currently 4.4.1). It looks to me that the absolute path not being forwarded correctly to podman. For example, in the OP the following is being passed to podman:
But the path that's being reported as not found in podman is:
I would have thought it should be mapped to:
|
Same thing happening in |
Same thing happening in Managed to make it work by uninstalling, manually installing 4.3.1 . |
This is happening on 4.5.0 too, on macOS M1. Even with a fresh VM. |
I'm experiencing the same behavior on 4.5.0 on M1 Mac |
The same on Windows and Podman 4.5.0 |
Having the same problem here |
Hey everyone please thumbs up the top issue comment if you are having it, do not "me too" comment, all you do is ping notifications to everyone. As of now there is no workaround as podman does not handle the paths provided by features on Windows/Mac, so if you need to use devcontainers with features, docker seems to be the only option ATM or use Linux as your host EDIT: Apparently as of 4.6.0-rc1 there is a potential fix: #17313 (comment) |
Just to add that this is specific to MacOS and Windows podman. The same files on linux works without any problem. |
I had the same issue using Podman v4.5.1. |
Along with this, I have some additional errors
Complete log I posted here too - https://stackoverflow.com/questions/76739312/devcontainer-build-error-when-using-podman-with-vscode |
Confirming that it works for me on macOS M2 as well with podman 4.6.0 - no need to fiddle with wayland settings (that is Windows specific I think) |
still have same problem in windows 11, with podman v4.6.1 |
still have the same issue in Mac Apple M1, with podman v4.6.2 |
still have the same issue in Mac Apple M1, with podman v4.7.0 |
I have this issue with Windows 11 and podman 4.7.2 |
I have this issue with Windows 11 and podman 4.8.2 |
I have this issue with Windows 11 and podman 4.8.0 |
Just a bump that this is the big reason I don't use podman and continue to use docker on Windows... |
@n1hility Thoughts? |
I have the same issue, it's a show stopper for using podman for me. |
still have the same issue in Mac Apple Intel , with podman 4.8.3 |
Still having an issue on Windows with podman 4.9.3 But I want to add a finding, that might be helpful: My username contains a white space (which is common in Windows) and this might cause the problem. The failing command looks like this:
The call gets interpreted as a command with two args, one being Simply adding quotes to the arg in that call would solve the issue. Does anyone of the contributors know where to fix that? |
+1 facing with podman v5.0.2 on mac |
This is the most voted on issue in this repo. Could it please get some attention? |
@l0rd Thoughts? |
Looking at it. The VS Code dev containers extension documentation talks about some limitations when using podman, but that may be outdated as it refers to podman v1.9. @JustinGrote or @virzak can you please share the configuration settings you are using (podman and vscode side)? update: I have identified the cause of the problem. The issue is with the option |
The additional build contexts specified with @mheon is that something that we plan to work on in the context of the buildx APIs? Otherwise I can give it a try during this sprint. Also, this issue is related (the same?) to #18691 and #18840 |
I don't think this is tracked by the buildx work - another card would be best |
Good news. Latest podman 5.3.0-rc1 fixes this. Was mentioned in one of the comments that it would likely release in 5.3.x Verified vscode, Windows 11, devcontainer with a feature now builds correctly. |
Maybe on Windows. Tested on Mac with Podman 5.3.0 final release and podman-compose version 1.2.0 and the same "command failed". Tested setting in vscode:
Podman with Docker compatibility enabled. |
Please file a new issue, as you are likely encountering a separate problem. |
Well I made some testing and expose so if could help for something. All this is for Mac with Apple Silicon. Currently what seems to work with vscode is offical Docker Desktop distribution. Uninstalled and installing Colima and got the very same failure than with Podman (Desktop). Then, maybe the official docker distribution included with Docker Desktop (that installs its own executables) have some tweaks? And vscode plugins are developed and tested using only this distribution?. Maybe could be at virtualization layer? In both Podman and Colima (using community docker distribution binaries) can configure only the virtualization layer (QEMU or Apple, and if use Rosseta), but on Docker Desktop I have another option that is file sharing implementation, with 3 options: VirtioFS, gRPC FUSE, osxfs (Legacy). With VirtioFS selected as default. Different implementation using VirtioFS? Found this related: rust-lang/docker-rust#161 So if the issue is fixed on Windows doesn't surprise me as it uses another virtualization layer, and currently be a Mac with Apple Silicon issue only. Hope this info helps. |
Issue Description
Dev containers features fails on the podman buildx command, it looks like the temp file doesn't get copied correctly by the builder.
Steps to reproduce the issue
Steps to reproduce the issue
Simple Example:
Describe the results you received
Describe the results you expected
Describe the results you expected
podman info output
If you are unable to run podman info for any reason, please provide the podman version, operating system and its version and the architecture you are running.
Podman in a container
No
Privileged Or Rootless
Rootless
Upstream Latest Release
Yes
Additional environment details
Additional environment details
Additional information
Additional information like issue happens only occasionally or issue happens with a particular architecture or on a particular setting
The text was updated successfully, but these errors were encountered: