You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use Podman for devcontainers inside VSCode on Windows 10 using WSL2.
I have cloned the basic vscode-remote-try-node repository and I am trying to open it inside VSCode using "Dev Containers: Open Folder in Container..." command.
Execute the "Dev Containers: Open Folder in Container..." command
See the error output in the VSCode terminal
Describe the results you received
VSCode terminal reports:
[36692 ms] Stop (24 ms): Run in Host: podman version --format {{json .}}
[36692 ms] Exit code 125
[36695 ms] CLI host's PATH: undefined
[36695 ms] Windows build number: 19045
[36704 ms] WSL feature installed: true (dll path: C:\Windows\System32\lxss\LxssManager.dll)
Running the same command on the Windows host (under cmd):
> podman version -f '{{json .}}'
Error: `podman version` takes no arguments
> podman version --help
Display the Podman version information
Description:
Usage:
podman version [options]
Options:
-f, --format string Change the output format to JSON or a Go template
Describe the results you expected
podman version -f '{{json .}}' outputs version information in the JSON format.
podman info output
host:
arch: amd64buildahVersion: 1.38.0cgroupControllers:
- cpuset
- cpu
- cpuacct
- blkio
- memory
- devices
- freezer
- net_cls
- perf_event
- net_prio
- hugetlb
- pids
- rdma
- misccgroupManager: cgroupfscgroupVersion: v1conmon:
package: conmon-2.1.12-2.fc40.x86_64path: /usr/bin/conmonversion: 'conmon version 2.1.12, commit: 'cpuUtilization:
idlePercent: 99.92systemPercent: 0.04userPercent: 0.03cpus: 16databaseBackend: sqlitedistribution:
distribution: fedoravariant: containerversion: "40"eventLogger: journaldfreeLocks: 2046hostname: COMPUTERidMappings:
gidmap: nulluidmap: nullkernel: 5.15.167.4-microsoft-standard-WSL2linkmode: dynamiclogDriver: journaldmemFree: 14732828672memTotal: 16515416064networkBackend: netavarknetworkBackendInfo:
backend: netavarkdns:
package: aardvark-dns-1.13.1-1.fc40.x86_64path: /usr/libexec/podman/aardvark-dnsversion: aardvark-dns 1.13.1package: netavark-1.13.1-1.fc40.x86_64path: /usr/libexec/podman/netavarkversion: netavark 1.13.1ociRuntime:
name: crunpackage: crun-1.19.1-1.fc40.x86_64path: /usr/bin/crunversion: |- crun version 1.19.1 commit: 3e32a70c93f5aa5fea69b50256cca7fd4aa23c80 rundir: /run/crun spec: 1.0.0 +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJLos: linuxpasta:
executable: /usr/bin/pastapackage: passt-0^20241211.g09478d5-1.fc40.x86_64version: | pasta 0^20241211.g09478d5-1.fc40.x86_64 Copyright Red Hat GNU General Public License, version 2 or later <https://www.gnu.org/licenses/old-licenses/gpl-2.0.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.remoteSocket:
exists: truepath: unix:///run/podman/podman.sockrootlessNetworkCmd: pastasecurity:
apparmorEnabled: falsecapabilities: CAP_CHOWN,CAP_DAC_OVERRIDE,CAP_FOWNER,CAP_FSETID,CAP_KILL,CAP_NET_BIND_SERVICE,CAP_SETFCAP,CAP_SETGID,CAP_SETPCAP,CAP_SETUID,CAP_SYS_CHROOTrootless: falseseccompEnabled: trueseccompProfilePath: /usr/share/containers/seccomp.jsonselinuxEnabled: falseserviceIsRemote: trueslirp4netns:
executable: ""package: ""version: ""swapFree: 4294967296swapTotal: 4294967296uptime: 20h 13m 58.00s (Approximately 0.83 days)variant: ""plugins:
authorization: nulllog:
- k8s-file
- none
- passthrough
- journaldnetwork:
- bridge
- macvlan
- ipvlanvolume:
- localregistries:
search:
- docker.iostore:
configFile: /usr/share/containers/storage.confcontainerStore:
number: 1paused: 0running: 0stopped: 1graphDriverName: overlaygraphOptions:
overlay.imagestore: /usr/lib/containers/storageoverlay.mountopt: nodev,metacopy=ongraphRoot: /var/lib/containers/storagegraphRootAllocated: 1081101176832graphRootUsed: 1288646656graphStatus:
Backing Filesystem: extfsNative Overlay Diff: "false"Supports d_type: "true"Supports shifting: "false"Supports volatile: "true"Using metacopy: "true"imageCopyTmpDir: /var/tmpimageStore:
number: 1runRoot: /run/containers/storagetransientStore: falsevolumePath: /var/lib/containers/storage/volumesversion:
APIVersion: 5.3.1Built: 1732147200BuiltTime: Thu Nov 21 01:00:00 2024GitCommit: ""GoVersion: go1.22.7Os: linuxOsArch: linux/amd64Version: 5.3.1
Podman in a container
Yes
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Podman version information
> podman version
Client: Podman Engine
Version: 5.3.2
API Version: 5.3.2
Go Version: go1.23.5
Git Commit: 85043bb1a3818102194afa82845cb63841067c9c
Built: Wed Jan 22 14:42:46 2025
OS/Arch: windows/amd64
Server: Podman Engine
Version: 5.3.1
API Version: 5.3.1
Go Version: go1.22.7
Built: Thu Nov 21 01:00:00 2024
OS/Arch: linux/amd64
Host system information (abbreviated)
> systeminfo
OS Name: Microsoft Windows 10 Enterprise
OS Version: 10.0.19045 N/A Build 19045
OS Manufacturer: Microsoft Corporation
OS Configuration: Member Workstation
OS Build Type: Multiprocessor Free
System Type: x64-based PC
Processor(s): 1 Processor(s) Installed.
[01]: Intel64 Family 6 Model 141 Stepping 1 GenuineIntel ~2496 Mhz
Total Physical Memory: 32,276 MB
Available Physical Memory: 10,144 MB
Virtual Memory: Max Size: 50,156 MB
Virtual Memory: Available: 6,060 MB
Virtual Memory: In Use: 44,096 MB
Just found out that using single-quotes for arguments doesn't work as expected in Windows cmd.
If I run the following command in cmd, the version --format works as expected:
> podman version --format "{{json .}}"
{"Client":{"APIVersion":"5.3.2","Version":"5.3.2","GoVersion":"go1.23.5","GitCommit":"85043bb1a3818102194afa82845cb63841067c9c","BuiltTime":"Wed Jan 22 14:42:46 2025","Built":1737553366,"OsArch":"windows/amd64","Os":"windows"},"Server":{"APIVersion":"5.3.1","Version":"5.3.1","GoVersion":"go1.22.7","GitCommit":"","BuiltTime":"Thu Nov 21 01:00:00 2024","Built":1732147200,"OsArch":"linux/amd64","Os":"linux"}}
I think this is probably an issue in the VSCode extension command invocation and not in Podman.
Yes version does not take any args so that is expected. If windows is incorrectly escaping arguments that is not something we can fix in podman. We just get an an array of args.
Issue Description
I am trying to use Podman for devcontainers inside VSCode on Windows 10 using WSL2.
I have cloned the basic vscode-remote-try-node repository and I am trying to open it inside VSCode using "Dev Containers: Open Folder in Container..." command.
The command fails to execute.
Steps to reproduce the issue
Steps to reproduce the issue
Follow the VSCode Devcontainers - Getting Started guide:
Describe the results you received
VSCode terminal reports:
Running the same command on the Windows host (under
cmd
):Describe the results you expected
podman version -f '{{json .}}'
outputs version information in the JSON format.podman info output
Podman in a container
Yes
Privileged Or Rootless
None
Upstream Latest Release
Yes
Additional environment details
Podman version information
Host system information (abbreviated)
WSL version information
VSCode version
URL: https://code.visualstudio.com/
VSCode devcontainers Extension
URL: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers
Additional information
The issue happens always.
The text was updated successfully, but these errors were encountered: