Skip to content
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

Issues with VSCode Dev Containers Compatibility #18691

Open
jakecorrenti opened this issue May 25, 2023 · 15 comments
Open

Issues with VSCode Dev Containers Compatibility #18691

jakecorrenti opened this issue May 25, 2023 · 15 comments
Assignees
Labels
kind/bug Categorizes issue or PR as related to a bug.

Comments

@jakecorrenti
Copy link
Member

jakecorrenti commented May 25, 2023

Issue Description

I have been trying to document how to set up Visual Studio Code and Dev Containers to use Podman instead of Docker. However, there are some issues that I have run into that are more difficult for me to figure out.

A basic setup for the Dev Containers seems to work fine for both Mac and Linux. However, veering away from the bare-bones examples proves to be unsuccessful.

Steps to reproduce the issue

Steps to reproduce the issue

  1. Install VS Code
  2. Install Dev Containers and Docker extensions
  3. Configure Dev Containers extension to point to the podman and podman-compose paths
  4. Configure Docker extension to point to the podman binary and add the DOCKER_HOST environment variable to point to the podman socket
  5. Open the folder that you want to create the Dev Container in
  6. Use the command palette in Visual Studio Code and type "Dev Containers: Add Dev Configuration Files..."
  7. Select the Debian Image
  8. Select to additionally install the android-sdk
  9. make the following modifications to the devcontainer.json file:
	"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,Z",
	"workspaceFolder": "/workspace",

	"runArgs": ["--userns=keep-id"],
	"containerUser": "vscode",

The Resulting devcontainer.json file:

{
	"name": "Debian",
	// Or use a Dockerfile or Docker Compose file. More info: https://containers.dev/guide/dockerfile
	"image": "mcr.microsoft.com/devcontainers/base:bullseye",
	"features": {
		"ghcr.io/dhoeric/features/act:1": {},
		"ghcr.io/jarrodcolburn/features/android-sdk:0": {}
	},

	"workspaceMount": "source=${localWorkspaceFolder},target=/workspace,type=bind,Z",
	"workspaceFolder": "/workspace",

	"runArgs": ["--userns=keep-id"],
	"containerUser": "vscode"

	// Features to add to the dev container. More info: https://containers.dev/features.
	// "features": {},

	// Use 'forwardPorts' to make a list of ports inside the container available locally.
	// "forwardPorts": [],

	// Configure tool-specific properties.
	// "customizations": {},

	// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
	// "remoteUser": "root"
}
  1. Use the command palette and type "Dev Containers: Rebuild and Reopen in Container"

Describe the results you received

The container will fail to start with the following error in the logs:

...
[2023-05-25T16:32:30.528Z] Start: Run: /usr/bin/podman buildx build --load --build-context dev_containers_feature_content_source=/tmp/devcontainercli-jakecorrenti/container-features/0.40.0-1685032349431 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/base:bullseye --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-random-devcontainer-testing-again-eb0f9bee21c08b26e8bd06d0d60b057f58f608c76050732d61ed128bbebe2056-features -f /tmp/devcontainercli-jakecorrenti/container-features/0.40.0-1685032349431/Dockerfile.extended /home/jakecorrenti/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder
[2023-05-25T16:32:30.555Z] [1/2] STEP 1/4: FROM mcr.microsoft.com/devcontainers/base:bullseye AS dev_containers_feature_content_normalize
[2023-05-25T16:32:30.567Z] [1/2] STEP 2/4: USER root
[2023-05-25T16:32:30.573Z] --> Using cache b401575ef0223ad8c5318696d1f5d9e10fa57ab8bee15a9f157e53b016d675a4
--> b401575ef022
[2023-05-25T16:32:30.577Z] [1/2] STEP 3/4: COPY --from=dev_containers_feature_content_source devcontainer-features.builtin.env /tmp/build-features/
[2023-05-25T16:32:30.687Z] --> Using cache 50d3d9337e869aa605012825fbec75d660e8d8415b53ca1812ea769c5d1f70d1
--> 50d3d9337e86
[2023-05-25T16:32:30.691Z] [1/2] STEP 4/4: RUN chmod -R 0755 /tmp/build-features/
[2023-05-25T16:32:30.695Z] --> Using cache f67bafdb3d3e5bb2f06b7bf2d43e27d4c2a5c86ab1454413110db250b45e5499
--> f67bafdb3d3e
[2023-05-25T16:32:30.700Z] [2/2] STEP 1/13: FROM mcr.microsoft.com/devcontainers/base:bullseye AS dev_containers_target_stage
[2023-05-25T16:32:30.707Z] [2/2] STEP 2/13: USER root
[2023-05-25T16:32:30.711Z] --> Using cache b401575ef0223ad8c5318696d1f5d9e10fa57ab8bee15a9f157e53b016d675a4
--> b401575ef022
[2023-05-25T16:32:30.715Z] [2/2] STEP 3/13: RUN mkdir -p /tmp/dev-container-features
[2023-05-25T16:32:30.719Z] --> Using cache 9d5d54c787eb6a3b5714e203f1300acc19c5033a887542a5b408a0aedf6bedd9
--> 9d5d54c787eb
[2023-05-25T16:32:30.723Z] [2/2] STEP 4/13: COPY --from=dev_containers_feature_content_normalize /tmp/build-features/ /tmp/dev-container-features
[2023-05-25T16:32:30.830Z] --> Using cache d66edbaf27fcab262bf6e887012a7fd5e7305a4cf3e69ef9c2c3747e564b3699
--> d66edbaf27fc
[2023-05-25T16:32:30.834Z] [2/2] STEP 5/13: RUN echo "_CONTAINER_USER_HOME=$(getent passwd vscode | cut -d: -f6)" >> /tmp/dev-container-features/devcontainer-features.builtin.env && echo "_REMOTE_USER_HOME=$(getent passwd vscode | cut -d: -f6)" >> /tmp/dev-container-features/devcontainer-features.builtin.env
[2023-05-25T16:32:30.838Z] --> Using cache 8d101aac6795c9a1ef2ef9ef3817ab8ae43c0031a5b230adbfea4aa7123619fb
--> 8d101aac6795
[2023-05-25T16:32:30.843Z] [2/2] STEP 6/13: RUN --mount=type=bind,from=dev_containers_feature_content_source,source=act_1,target=/tmp/build-features-src/act_1     cp -ar /tmp/build-features-src/act_1 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/act_1  && cd /tmp/dev-container-features/act_1  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/act_1
[2023-05-25T16:32:30.984Z] cp: cannot access '/tmp/build-features-src/act_1': Permission denied
[2023-05-25T16:32:31.073Z] Error: building at STEP "RUN --mount=type=bind,from=dev_containers_feature_content_source,source=act_1,target=/tmp/build-features-src/act_1 cp -ar /tmp/build-features-src/act_1 /tmp/dev-container-features  && chmod -R 0755 /tmp/dev-container-features/act_1  && cd /tmp/dev-container-features/act_1  && chmod +x ./devcontainer-features-install.sh  && ./devcontainer-features-install.sh  && rm -rf /tmp/dev-container-features/act_1": while running runtime: exit status 1
[2023-05-25T16:32:31.076Z] Stop (548 ms): Run: /usr/bin/podman buildx build --load --build-context dev_containers_feature_content_source=/tmp/devcontainercli-jakecorrenti/container-features/0.40.0-1685032349431 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/base:bullseye --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-random-devcontainer-testing-again-eb0f9bee21c08b26e8bd06d0d60b057f58f608c76050732d61ed128bbebe2056-features -f /tmp/devcontainercli-jakecorrenti/container-features/0.40.0-1685032349431/Dockerfile.extended /home/jakecorrenti/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder
[2023-05-25T16:32:31.076Z] Error: Command failed: /usr/bin/podman buildx build --load --build-context dev_containers_feature_content_source=/tmp/devcontainercli-jakecorrenti/container-features/0.40.0-1685032349431 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/base:bullseye --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-random-devcontainer-testing-again-eb0f9bee21c08b26e8bd06d0d60b057f58f608c76050732d61ed128bbebe2056-features -f /tmp/devcontainercli-jakecorrenti/container-features/0.40.0-1685032349431/Dockerfile.extended /home/jakecorrenti/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data/empty-folder
[2023-05-25T16:32:31.077Z]     at Tse (/home/jakecorrenti/.vscode/extensions/ms-vscode-remote.remote-containers-0.292.0/dist/spec-node/devContainersSpecCLI.js:1946:3264)
[2023-05-25T16:32:31.077Z]     at rO (/home/jakecorrenti/.vscode/extensions/ms-vscode-remote.remote-containers-0.292.0/dist/spec-node/devContainersSpecCLI.js:1946:3200)
[2023-05-25T16:32:31.077Z]     at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
[2023-05-25T16:32:31.077Z]     at async Xse (/home/jakecorrenti/.vscode/extensions/ms-vscode-remote.remote-containers-0.292.0/dist/spec-node/devContainersSpecCLI.js:1961:2626)
[2023-05-25T16:32:31.077Z]     at async vh (/home/jakecorrenti/.vscode/extensions/ms-vscode-remote.remote-containers-0.292.0/dist/spec-node/devContainersSpecCLI.js:1961:3741)
[2023-05-25T16:32:31.077Z]     at async gae (/home/jakecorrenti/.vscode/extensions/ms-vscode-remote.remote-containers-0.292.0/dist/spec-node/devContainersSpecCLI.js:2092:10213)
[2023-05-25T16:32:31.077Z]     at async mae (/home/jakecorrenti/.vscode/extensions/ms-vscode-remote.remote-containers-0.292.0/dist/spec-node/devContainersSpecCLI.js:2092:9954)
[2023-05-25T16:32:31.081Z] Stop (2020 ms): Run: /usr/share/code/code --ms-enable-electron-run-as-node /home/jakecorrenti/.vscode/extensions/ms-vscode-remote.remote-containers-0.292.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/jakecorrenti/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --docker-path /usr/bin/podman --docker-compose-path podman-compose --container-session-data-folder /tmp/devcontainers-d8bac0b3-49ab-42f9-b4c4-fba0cef89aaa1685032348011 --workspace-folder /home/jakecorrenti/random-devcontainer-testing-again --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/jakecorrenti/random-devcontainer-testing-again --id-label devcontainer.config_file=/home/jakecorrenti/random-devcontainer-testing-again/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/jakecorrenti/random-devcontainer-testing-again/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --remove-existing-container --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-05-25T16:32:31.082Z] Exit code 1
[2023-05-25T16:32:31.086Z] Command failed: /usr/share/code/code --ms-enable-electron-run-as-node /home/jakecorrenti/.vscode/extensions/ms-vscode-remote.remote-containers-0.292.0/dist/spec-node/devContainersSpecCLI.js up --user-data-folder /home/jakecorrenti/.config/Code/User/globalStorage/ms-vscode-remote.remote-containers/data --docker-path /usr/bin/podman --docker-compose-path podman-compose --container-session-data-folder /tmp/devcontainers-d8bac0b3-49ab-42f9-b4c4-fba0cef89aaa1685032348011 --workspace-folder /home/jakecorrenti/random-devcontainer-testing-again --workspace-mount-consistency cached --id-label devcontainer.local_folder=/home/jakecorrenti/random-devcontainer-testing-again --id-label devcontainer.config_file=/home/jakecorrenti/random-devcontainer-testing-again/.devcontainer/devcontainer.json --log-level debug --log-format json --config /home/jakecorrenti/random-devcontainer-testing-again/.devcontainer/devcontainer.json --default-user-env-probe loginInteractiveShell --remove-existing-container --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-05-25T16:32:31.087Z] Exit code 1

Describe the results you expected

I expected the container to successfully start with no errors

podman info output

host:
  arch: amd64
  buildahVersion: 1.31.0-dev
  cgroupControllers:
  - cpu
  - io
  - memory
  - pids
  cgroupManager: cgroupfs
  cgroupVersion: v2
  conmon:
    package: Unknown
    path: /usr/local/libexec/podman/conmon
    version: 'conmon version 2.1.7, commit: d5564f8c3693d2e54b45555fd8f3b1596b0e6d77'
  cpuUtilization:
    idlePercent: 80.47
    systemPercent: 4.12
    userPercent: 15.41
  cpus: 8
  databaseBackend: boltdb
  distribution:
    distribution: fedora
    variant: workstation
    version: "38"
  eventLogger: file
  hostname: fedora
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 524288
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 524288
      size: 65536
  kernel: 6.2.15-300.fc38.x86_64
  linkmode: dynamic
  logDriver: k8s-file
  memFree: 17991634944
  memTotal: 33386004480
  networkBackend: netavark
  ociRuntime:
    name: crun
    package: crun-1.8.5-1.fc38.x86_64
    path: /usr/bin/crun
    version: |-
      crun version 1.8.5
      commit: b6f80f766c9a89eb7b1440c0a70ab287434b17ed
      rundir: /run/user/1000/crun
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJL
  os: linux
  remoteSocket:
    exists: true
    path: /run/user/1000/podman/podman.sock
  security:
    apparmorEnabled: false
    capabilities: 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_CHROOT
    rootless: true
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: true
  serviceIsRemote: false
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns-1.2.0-12.fc38.x86_64
    version: |-
      slirp4netns version 1.2.0
      commit: 656041d45cfca7a4176f6b7eed9e4fe6c11e8383
      libslirp: 4.7.0
      SLIRP_CONFIG_VERSION_MAX: 4
      libseccomp: 2.5.3
  swapFree: 8589930496
  swapTotal: 8589930496
  uptime: 5h 24m 40.00s (Approximately 0.21 days)
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries:
  search:
  - registry.fedoraproject.org
  - registry.access.redhat.com
  - docker.io
  - quay.io
store:
  configFile: /home/jakecorrenti/.config/containers/storage.conf
  containerStore:
    number: 0
    paused: 0
    running: 0
    stopped: 0
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /home/jakecorrenti/.local/share/containers/storage
  graphRootAllocated: 254356226048
  graphRootUsed: 16890331136
  graphStatus:
    Backing Filesystem: btrfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 162
  runRoot: /run/user/1000/containers
  transientStore: false
  volumePath: /home/jakecorrenti/.local/share/containers/storage/volumes
version:
  APIVersion: 4.6.0-dev
  Built: 1684776405
  BuiltTime: Mon May 22 13:26:45 2023
  GitCommit: b15510694b81929dbc107d354fdb0a83d0bfaa2a
  GoVersion: go1.20.4
  Os: linux
  OsArch: linux/amd64
  Version: 4.6.0-dev

Podman in a container

No

Privileged Or Rootless

Rootless

Upstream Latest Release

Yes

Additional environment details

$ podman-compose --version
podman-compose version: 1.0.6
['podman', '--version', '']
using podman version: 4.6.0-dev
podman-compose version 1.0.6
podman --version 
podman version 4.6.0-dev
exit code: 0

Additional information

Additional incompatibilities:

  • Follow the initial instructions above up until step 7. Instead, select the image "Anaconda (Python 3) & PostgreSQL"
  • Select "OK" to install no additional software
  • make the following modification to the devcontainer.json file:
"containerUser": "vscode",

// The other configuration items that were added above are not supported for this image's configuration
  • the resulting devcontainer.json file:
// For format details, see https://aka.ms/devcontainer.json. For config options, see the
// README at: /~https://github.com/devcontainers/templates/tree/main/src/anaconda-postgres
{
	"name": "Anaconda (Python 3) & PostgreSQL",
	"dockerComposeFile": "docker-compose.yml",
	"service": "app",
	"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
	"containerUser": "vscode"
	
	// Features to add to the dev container. More info: https://containers.dev/features.
	// "features": {},

	// Use 'forwardPorts' to make a list of ports inside the container available locally.
	// "forwardPorts": [5432],

	// Use 'postCreateCommand' to run commands after the container is created.
	// "postCreateCommand": "python --version",

	// Configure tool-specific properties.
	// "customizations": {},

	// Uncomment to connect as root instead. More info: https://aka.ms/dev-containers-non-root.
	// "remoteUser": "root"
}
  • When attempting to Rebuild and Reopen this in a Container, nothing happens.
  • I also expected this to result in the container/server starting and loading correctly

This issue refers to the current open PR: #18679

@jakecorrenti jakecorrenti added the kind/bug Categorizes issue or PR as related to a bug. label May 25, 2023
@mheon
Copy link
Member

mheon commented May 25, 2023

Error appears to be [2023-05-25T16:32:30.984Z] cp: cannot access '/tmp/build-features-src/act_1': Permission denied

There's a --mount=type=bind,from=dev_containers_feature_content_source,source=act_1,target=/tmp/build-features-src/act_1 in the build command that fails. So the volume exists. The syntax is strange, though - haven't seen a volume with both from and source specified at the same time.

@flouthoc PTAL

@jakecorrenti
Copy link
Member Author

Experiencing #17313 on my personal Intel Mac

@github-actions
Copy link

github-actions bot commented Jul 1, 2023

A friendly reminder that this issue had no activity for 30 days.

@MRDGH2821
Copy link

MRDGH2821 commented Jul 21, 2023

I'm on Windows and installed Podman 4.6.0

And I'm facing different kind of error.

Container log:

[2023-07-21T05:39:25.378Z] Dev Containers 0.299.0 in VS Code 1.80.1 (74f6148eb9ea00507ec113ec51c489d6ffb4b771).
[2023-07-21T05:39:25.378Z] Start: Resolving Remote
[2023-07-21T05:39:25.398Z] Setting up container for folder or workspace: c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot
[2023-07-21T05:39:25.399Z] Start: Run: wsl -l -v
[2023-07-21T05:39:25.446Z] Stop (47 ms): Run: wsl -l -v
[2023-07-21T05:39:25.446Z] Start: Run: wsl -d Ubuntu -e /bin/sh -c echo ~
[2023-07-21T05:39:27.114Z] Stop (1668 ms): Run: wsl -d Ubuntu -e /bin/sh -c echo ~
[2023-07-21T05:39:27.115Z] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mrdgh2821' && /bin/sh
[2023-07-21T05:39:27.119Z] Start: Run in host: id -un
[2023-07-21T05:39:27.166Z] mrdgh2821
[2023-07-21T05:39:27.167Z] 
[2023-07-21T05:39:27.167Z] Stop (48 ms): Run in host: id -un
[2023-07-21T05:39:27.167Z] Start: Run in host: cat /etc/passwd
[2023-07-21T05:39:27.167Z] Stop (0 ms): Run in host: cat /etc/passwd
[2023-07-21T05:39:27.168Z] Start: Run in host: echo ~
[2023-07-21T05:39:27.168Z] /home/mrdgh2821
[2023-07-21T05:39:27.168Z] 
[2023-07-21T05:39:27.168Z] Stop (0 ms): Run in host: echo ~
[2023-07-21T05:39:27.168Z] Start: Run in host: test -x '/home/mrdgh2821/.vscode-remote-containers/bin/74f6148eb9ea00507ec113ec51c489d6ffb4b771/node'
[2023-07-21T05:39:27.169Z] 
[2023-07-21T05:39:27.169Z] 
[2023-07-21T05:39:27.169Z] Stop (1 ms): Run in host: test -x '/home/mrdgh2821/.vscode-remote-containers/bin/74f6148eb9ea00507ec113ec51c489d6ffb4b771/node'
[2023-07-21T05:39:27.169Z] Start: Run in host: test -f '/home/mrdgh2821/.vscode-remote-containers/dist/vscode-remote-containers-server-0.299.0.js'
[2023-07-21T05:39:27.170Z] 
[2023-07-21T05:39:27.170Z] 
[2023-07-21T05:39:27.170Z] Stop (1 ms): Run in host: test -f '/home/mrdgh2821/.vscode-remote-containers/dist/vscode-remote-containers-server-0.299.0.js'
[2023-07-21T05:39:27.172Z] userEnvProbe: loginInteractiveShell (default)
[2023-07-21T05:39:27.172Z] userEnvProbe: not found in cache
[2023-07-21T05:39:27.172Z] userEnvProbe shell: /bin/bash
[2023-07-21T05:39:27.254Z] userEnvProbe PATHs:
Probe:     '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/RedHat/Podman/:/mnt/c/Program Files (x86)/GnuPG/bin:/mnt/c/Users/mihir/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/mihir/AppData/Local/Programs/oh-my-posh/bin:/mnt/c/Users/mihir/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/mihir/AppData/Local/GitHubDesktop/bin:/mnt/c/Users/mihir/AppData/Local/gitkraken/bin:/mnt/c/Users/mihir/bin:/mnt/c/Users/mihir/AppData/Roaming/Code/User/globalStorage/ms-vscode-remote.remote-containers/cli-bin:/snap/bin'
Container: None
[2023-07-21T05:39:27.255Z] Start: Check Docker is running
[2023-07-21T05:39:27.255Z] Start: Run: podman version --format {{.Server.APIVersion}}
[2023-07-21T05:39:27.503Z] Stop (248 ms): Run: podman version --format {{.Server.APIVersion}}
[2023-07-21T05:39:27.503Z] Server API version: 4.5.0
[2023-07-21T05:39:27.503Z] Stop (248 ms): Check Docker is running
[2023-07-21T05:39:27.504Z] Start: Run: podman volume ls -q
[2023-07-21T05:39:27.757Z] Stop (253 ms): Run: podman volume ls -q
[2023-07-21T05:39:27.757Z] Start: Run: podman ps -q -a --filter label=vsch.local.folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --filter label=vsch.quality=stable
[2023-07-21T05:39:28.006Z] Stop (249 ms): Run: podman ps -q -a --filter label=vsch.local.folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --filter label=vsch.quality=stable
[2023-07-21T05:39:28.006Z] Start: Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --filter label=devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json
[2023-07-21T05:39:28.257Z] Stop (251 ms): Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --filter label=devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json
[2023-07-21T05:39:28.257Z] Start: Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot
[2023-07-21T05:39:28.507Z] Stop (250 ms): Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot
[2023-07-21T05:39:28.507Z] Start: Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot
[2023-07-21T05:39:28.746Z] Stop (239 ms): Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot
[2023-07-21T05:39:28.747Z] Start: Run: C:\Users\mihir\AppData\Local\Programs\Microsoft VS Code\Code.exe --ms-enable-electron-run-as-node c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js read-configuration --docker-path podman --workspace-folder c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --id-label devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --id-label devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --mount-workspace-git-root true
[2023-07-21T05:39:28.906Z] @devcontainers/cli 0.46.0. Node.js v16.17.1. win32 10.0.22621 x64.
[2023-07-21T05:39:28.906Z] Start: Run: git rev-parse --show-cdup
[2023-07-21T05:39:28.934Z] Stop (28 ms): Run: git rev-parse --show-cdup
[2023-07-21T05:39:28.935Z] Start: Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --filter label=devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json
[2023-07-21T05:39:29.177Z] Stop (242 ms): Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --filter label=devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json
[2023-07-21T05:39:29.183Z] Stop (436 ms): Run: C:\Users\mihir\AppData\Local\Programs\Microsoft VS Code\Code.exe --ms-enable-electron-run-as-node c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js read-configuration --docker-path podman --workspace-folder c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --id-label devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --id-label devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --mount-workspace-git-root true
[2023-07-21T05:39:29.183Z] Start: Run: C:\Users\mihir\AppData\Local\Programs\Microsoft VS Code\Code.exe --ms-enable-electron-run-as-node c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js up --user-data-folder c:\Users\mihir\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data --docker-path podman --container-session-data-folder /tmp/devcontainers-bae9666a-cbd9-4ecd-bc23-17f1513326bd1689917964940 --workspace-folder c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --workspace-mount-consistency cached --id-label devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --id-label devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-07-21T05:39:29.340Z] @devcontainers/cli 0.46.0. Node.js v16.17.1. win32 10.0.22621 x64.
[2023-07-21T05:39:29.340Z] Start: Run: podman buildx version
[2023-07-21T05:39:29.516Z] Stop (176 ms): Run: podman buildx version
[2023-07-21T05:39:29.516Z] buildah 1.31.0
[2023-07-21T05:39:29.517Z] 
[2023-07-21T05:39:29.517Z] Start: Resolving Remote
[2023-07-21T05:39:29.519Z] Start: Run: git rev-parse --show-cdup
[2023-07-21T05:39:29.543Z] Stop (24 ms): Run: git rev-parse --show-cdup
[2023-07-21T05:39:29.545Z] Start: Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --filter label=devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json
[2023-07-21T05:39:29.796Z] Stop (251 ms): Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --filter label=devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json
[2023-07-21T05:39:29.797Z] Start: Run: podman inspect --type image mcr.microsoft.com/devcontainers/typescript-node:18
[2023-07-21T05:39:30.030Z] Stop (233 ms): Run: podman inspect --type image mcr.microsoft.com/devcontainers/typescript-node:18
[2023-07-21T05:39:30.030Z] local container features stored at: c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\node_modules\vscode-dev-containers\container-features
[2023-07-21T05:39:30.031Z] Start: Run: tar --no-same-owner -x -f -
[2023-07-21T05:39:30.055Z] Stop (24 ms): Run: tar --no-same-owner -x -f -
[2023-07-21T05:39:30.058Z] Resolving Feature dependencies for 'ghcr.io/devcontainers-contrib/features/typescript:2'...
[2023-07-21T05:39:30.059Z] * Processing feature: ghcr.io/devcontainers-contrib/features/typescript:2
[2023-07-21T05:39:30.521Z] Start: Run: docker-credential-wincred get
[2023-07-21T05:39:30.526Z] findLocalWindowsExecutable: Exectuable 'docker-credential-wincred' not found on PATH 'C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;C:\Program Files\RedHat\Podman\;C:\Program Files (x86)\Gpg4win\..\GnuPG\bin;C:\Users\mihir\AppData\Local\Microsoft\WindowsApps;C:\Users\mihir\AppData\Local\Programs\oh-my-posh\bin;C:\Users\mihir\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\mihir\AppData\Local\GitHubDesktop\bin;C:\Users\mihir\AppData\Local\gitkraken\bin;C:\Users\mihir\bin;;c:\Users\mihir\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\cli-bin'.
[2023-07-21T05:39:32.139Z] * Processing feature: ghcr.io/devcontainers-contrib/features/npm-package
[2023-07-21T05:39:33.330Z] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/desktop-lite:1'...
[2023-07-21T05:39:33.330Z] * Processing feature: ghcr.io/devcontainers/features/desktop-lite:1
[2023-07-21T05:39:34.517Z] * Processing feature: ghcr.io/devcontainers/features/common-utils
[2023-07-21T05:39:35.816Z] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/git:1'...
[2023-07-21T05:39:35.816Z] * Processing feature: ghcr.io/devcontainers/features/git:1
[2023-07-21T05:39:36.964Z] * Processing feature: ghcr.io/devcontainers/features/common-utils
[2023-07-21T05:39:38.187Z] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/node:1'...
[2023-07-21T05:39:38.187Z] * Processing feature: ghcr.io/devcontainers/features/node:1
[2023-07-21T05:39:39.344Z] * Processing feature: ghcr.io/devcontainers/features/common-utils
[2023-07-21T05:39:40.579Z] Resolving Feature dependencies for 'ghcr.io/dhoeric/features/hadolint:1'...
[2023-07-21T05:39:40.579Z] * Processing feature: ghcr.io/dhoeric/features/hadolint:1
[2023-07-21T05:39:41.758Z] * Processing feature: ghcr.io/devcontainers/features/common-utils
[2023-07-21T05:39:43.013Z] Soft-dependency 'ghcr.io/devcontainers-contrib/features/npm-package' is not required.  Removing from installation order...
[2023-07-21T05:39:43.013Z] Soft-dependency 'ghcr.io/devcontainers/features/common-utils' is not required.  Removing from installation order...
[2023-07-21T05:39:43.013Z] Soft-dependency 'ghcr.io/devcontainers/features/common-utils' is not required.  Removing from installation order...
[2023-07-21T05:39:43.013Z] Soft-dependency 'ghcr.io/devcontainers/features/common-utils' is not required.  Removing from installation order...
[2023-07-21T05:39:43.013Z] Soft-dependency 'ghcr.io/devcontainers/features/common-utils' is not required.  Removing from installation order...
[2023-07-21T05:39:43.013Z] * Fetching feature: typescript_0_oci
[2023-07-21T05:39:43.677Z] * Fetching feature: desktop-lite_1_oci
[2023-07-21T05:39:44.354Z] * Fetching feature: git_2_oci
[2023-07-21T05:39:45.054Z] * Fetching feature: node_3_oci
[2023-07-21T05:39:45.731Z] * Fetching feature: hadolint_4_oci
[2023-07-21T05:39:46.415Z] Start: Run: podman buildx build --load --build-context dev_containers_feature_content_source=C:\Users\mihir\AppData\Local\Temp\devcontainercli\container-features\0.46.0-1689917970030 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/typescript-node:18 --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-discord-ban-utils-bot-1aa5cea51a6a29accd4e5bf90982d33d7326a6face5746c5a4de512e457efaa4-features -f C:\Users\mihir\AppData\Local\Temp\devcontainercli\container-features\0.46.0-1689917970030\Dockerfile.extended c:\Users\mihir\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data\empty-folder
[2023-07-21T05:39:46.496Z] 
[2023-07-21T05:39:46.676Z] time="2023-07-21T11:09:46+05:30" level=error msg="While reading directory C:\\Us
ers\\mihir\\AppData\\Roaming\\Code\\User\\globalStorage\\ms-vscode-remote.remote
-containers\\data\\empty-folder: EOF"
[2023-07-21T05:39:46.769Z] [1/2] STEP 1/4: FROM mcr.microsoft.com/devcontainers/typescript-node:18 AS dev_c
ontainers_feature_content_normalize
[1/2] STEP 2/4: USER root
[2023-07-21T05:39:46.800Z] --> Using cache f02a69516a9b42331906b7d959d7ee3ef9d900eb2d63711a6b2e39db0bd56698
--> f02a69516a9b
[1/2] STEP 3/4: COPY --from=dev_containers_feature_content_source devcontainer-f
eatures.builtin.env /tmp/build-features/
[2023-07-21T05:39:46.831Z] Error: building at STEP "COPY --from=dev_containers_feature_content_source devco
ntainer-features.builtin.env /tmp/build-features/": checking on sources under "/
home/user/C:\\Users\\mihir\\AppData\\Local\\Temp\\devcontainercli\\container-fea
tures\\0.46.0-1689917970030": error in copier subprocess: changing to intended-n
ew-root directory "/home/user/C:\\Users\\mihir\\AppData\\Local\\Temp\\devcontain
ercli\\container-features\\0.46.0-1689917970030": chdir /home/user/C:\Users\mihi
r\AppData\Local\Temp\devcontainercli\container-features\0.46.0-1689917970030: no
 such file or directory

[2023-07-21T05:39:46.893Z] Stop (478 ms): Run: podman buildx build --load --build-context dev_containers_feature_content_source=C:\Users\mihir\AppData\Local\Temp\devcontainercli\container-features\0.46.0-1689917970030 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/typescript-node:18 --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-discord-ban-utils-bot-1aa5cea51a6a29accd4e5bf90982d33d7326a6face5746c5a4de512e457efaa4-features -f C:\Users\mihir\AppData\Local\Temp\devcontainercli\container-features\0.46.0-1689917970030\Dockerfile.extended c:\Users\mihir\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data\empty-folder
[2023-07-21T05:39:46.894Z] Error: Command failed: podman buildx build --load --build-context dev_containers_feature_content_source=C:\Users\mihir\AppData\Local\Temp\devcontainercli\container-features\0.46.0-1689917970030 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/typescript-node:18 --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-discord-ban-utils-bot-1aa5cea51a6a29accd4e5bf90982d33d7326a6face5746c5a4de512e457efaa4-features -f C:\Users\mihir\AppData\Local\Temp\devcontainercli\container-features\0.46.0-1689917970030\Dockerfile.extended c:\Users\mihir\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data\empty-folder
[2023-07-21T05:39:46.895Z]     at Mte (c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js:2007:1066)
[2023-07-21T05:39:46.895Z]     at n3 (c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js:2007:1002)
[2023-07-21T05:39:46.895Z]     at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
[2023-07-21T05:39:46.895Z]     at async rre (c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js:2024:3660)
[2023-07-21T05:39:46.895Z]     at async Yf (c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js:2024:4775)
[2023-07-21T05:39:46.895Z]     at async Dne (c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js:2156:12193)
[2023-07-21T05:39:46.895Z]     at async Sne (c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js:2156:11934)
[2023-07-21T05:39:46.901Z] Stop (17718 ms): Run: C:\Users\mihir\AppData\Local\Programs\Microsoft VS Code\Code.exe --ms-enable-electron-run-as-node c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js up --user-data-folder c:\Users\mihir\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data --docker-path podman --container-session-data-folder /tmp/devcontainers-bae9666a-cbd9-4ecd-bc23-17f1513326bd1689917964940 --workspace-folder c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --workspace-mount-consistency cached --id-label devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --id-label devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-07-21T05:39:46.901Z] Exit code 1
[2023-07-21T05:39:46.903Z] Command failed: C:\Users\mihir\AppData\Local\Programs\Microsoft VS Code\Code.exe --ms-enable-electron-run-as-node c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js up --user-data-folder c:\Users\mihir\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data --docker-path podman --container-session-data-folder /tmp/devcontainers-bae9666a-cbd9-4ecd-bc23-17f1513326bd1689917964940 --workspace-folder c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --workspace-mount-consistency cached --id-label devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --id-label devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-07-21T05:39:46.903Z] Exit code 1

devcontainer.json

{
  "name": "Node.js & TypeScript",
  "image": "mcr.microsoft.com/devcontainers/typescript-node:18",
  "postCreateCommand": "bash .devcontainer/setup.sh",
  "features": {
    "ghcr.io/devcontainers-contrib/features/typescript:2": {},
    "ghcr.io/devcontainers/features/desktop-lite:1": {},
    "ghcr.io/devcontainers/features/git:1": {},
    "ghcr.io/devcontainers/features/node:1": {},
    "ghcr.io/dhoeric/features/hadolint:1": {}
  },
  "customizations": {
    "vscode": {
      "extensions": [
        "christian-kohler.npm-intellisense",
        "christian-kohler.path-intellisense",
        "cschlosser.doxdocgen",
        "dbaeumer.vscode-eslint",
        "eamodio.gitlens",
        "esbenp.prettier-vscode",
        "exiasr.hadolint",
        "MichaelCurrin.auto-commit-msg",
        "p42ai.refactor",
        "Phu1237.vs-browser",
        "redhat.vscode-yaml",
        "spmeesseman.vscode-taskexplorer",
        "streetsidesoftware.code-spell-checker",
        "usernamehw.errorlens"
      ]
    }
  },
  "forwardPorts": [
    5901,
    6080
  ],
  "remoteUser": "vscode",
  "runArgs": [
    "--userns=keep-id:uid=1000,gid=1000"
  ],
  "containerUser": "vscode",
  "updateRemoteUserUID": true,
  "containerEnv": {
    "HOME": "/home/vscode"
  }
}

podman info

host:
  arch: amd64
  buildahVersion: 1.30.0
  cgroupControllers: []
  cgroupManager: cgroupfs
  cgroupVersion: v1
  conmon:
    package: conmon-2.1.7-2.fc37.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.7, commit: '
  cpuUtilization:
    idlePercent: 99.77
    systemPercent: 0.08
    userPercent: 0.16
  cpus: 16
  databaseBackend: boltdb
  distribution:
    distribution: fedora
    variant: container
    version: "37"
  eventLogger: journald
  hostname: ANT-MRDGH2821
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 524288
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 524288
      size: 65536
  kernel: 5.15.90.1-microsoft-standard-WSL2
  linkmode: dynamic
  logDriver: journald
  memFree: 13533540352
  memTotal: 16320323584
  networkBackend: netavark
  networkBackendInfo:
    backend: ""
    dns: {}
  ociRuntime:
    name: crun
    package: crun-1.8.5-1.fc37.x86_64
    path: /usr/bin/crun
    version: |-
      crun version 1.8.5
      commit: b6f80f766c9a89eb7b1440c0a70ab287434b17ed
      rundir: /run/user/1000/crun
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJL
  os: linux
  pasta:
    executable: ""
    package: ""
    version: ""
  remoteSocket:
    exists: true
    path: /run/user/1000/podman/podman.sock
  security:
    apparmorEnabled: false
    capabilities: 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_CHROOT
    rootless: true
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: false
  serviceIsRemote: true
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns-1.2.0-8.fc37.x86_64
    version: |-
      slirp4netns version 1.2.0
      commit: 656041d45cfca7a4176f6b7eed9e4fe6c11e8383
      libslirp: 4.7.0
      SLIRP_CONFIG_VERSION_MAX: 4
      libseccomp: 2.5.3
  swapFree: 4294967296
  swapTotal: 4294967296
  uptime: 0h 26m 49.00s
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries:
  search:
  - docker.io
store:
  configFile: /home/user/.config/containers/storage.conf
  containerStore:
    number: 1
    paused: 0
    running: 0
    stopped: 1
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /home/user/.local/share/containers/storage
  graphRootAllocated: 1081101176832
  graphRootUsed: 2446757888
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 3
  runRoot: /run/user/1000/containers
  transientStore: false
  volumePath: /home/user/.local/share/containers/storage/volumes
version:
  APIVersion: 4.5.0
  Built: 1681486976
  BuiltTime: Fri Apr 14 21:12:56 2023
  GitCommit: ""
  GoVersion: go1.19.7
  Os: linux
  OsArch: linux/amd64
  Version: 4.5.0

@fsdrw08
Copy link

fsdrw08 commented Aug 20, 2023

I'm on Windows and installed Podman 4.6.0

And I'm facing different kind of error.

Container log:

[2023-07-21T05:39:25.378Z] Dev Containers 0.299.0 in VS Code 1.80.1 (74f6148eb9ea00507ec113ec51c489d6ffb4b771).
[2023-07-21T05:39:25.378Z] Start: Resolving Remote
[2023-07-21T05:39:25.398Z] Setting up container for folder or workspace: c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot
[2023-07-21T05:39:25.399Z] Start: Run: wsl -l -v
[2023-07-21T05:39:25.446Z] Stop (47 ms): Run: wsl -l -v
[2023-07-21T05:39:25.446Z] Start: Run: wsl -d Ubuntu -e /bin/sh -c echo ~
[2023-07-21T05:39:27.114Z] Stop (1668 ms): Run: wsl -d Ubuntu -e /bin/sh -c echo ~
[2023-07-21T05:39:27.115Z] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/mrdgh2821' && /bin/sh
[2023-07-21T05:39:27.119Z] Start: Run in host: id -un
[2023-07-21T05:39:27.166Z] mrdgh2821
[2023-07-21T05:39:27.167Z] 
[2023-07-21T05:39:27.167Z] Stop (48 ms): Run in host: id -un
[2023-07-21T05:39:27.167Z] Start: Run in host: cat /etc/passwd
[2023-07-21T05:39:27.167Z] Stop (0 ms): Run in host: cat /etc/passwd
[2023-07-21T05:39:27.168Z] Start: Run in host: echo ~
[2023-07-21T05:39:27.168Z] /home/mrdgh2821
[2023-07-21T05:39:27.168Z] 
[2023-07-21T05:39:27.168Z] Stop (0 ms): Run in host: echo ~
[2023-07-21T05:39:27.168Z] Start: Run in host: test -x '/home/mrdgh2821/.vscode-remote-containers/bin/74f6148eb9ea00507ec113ec51c489d6ffb4b771/node'
[2023-07-21T05:39:27.169Z] 
[2023-07-21T05:39:27.169Z] 
[2023-07-21T05:39:27.169Z] Stop (1 ms): Run in host: test -x '/home/mrdgh2821/.vscode-remote-containers/bin/74f6148eb9ea00507ec113ec51c489d6ffb4b771/node'
[2023-07-21T05:39:27.169Z] Start: Run in host: test -f '/home/mrdgh2821/.vscode-remote-containers/dist/vscode-remote-containers-server-0.299.0.js'
[2023-07-21T05:39:27.170Z] 
[2023-07-21T05:39:27.170Z] 
[2023-07-21T05:39:27.170Z] Stop (1 ms): Run in host: test -f '/home/mrdgh2821/.vscode-remote-containers/dist/vscode-remote-containers-server-0.299.0.js'
[2023-07-21T05:39:27.172Z] userEnvProbe: loginInteractiveShell (default)
[2023-07-21T05:39:27.172Z] userEnvProbe: not found in cache
[2023-07-21T05:39:27.172Z] userEnvProbe shell: /bin/bash
[2023-07-21T05:39:27.254Z] userEnvProbe PATHs:
Probe:     '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/usr/lib/wsl/lib:/mnt/c/Windows/system32:/mnt/c/Windows:/mnt/c/Windows/System32/Wbem:/mnt/c/Windows/System32/WindowsPowerShell/v1.0/:/mnt/c/Windows/System32/OpenSSH/:/mnt/c/Program Files/NVIDIA Corporation/NVIDIA NvDLISR:/mnt/c/Program Files (x86)/NVIDIA Corporation/PhysX/Common:/mnt/c/Program Files/Git/cmd:/mnt/c/Program Files/RedHat/Podman/:/mnt/c/Program Files (x86)/GnuPG/bin:/mnt/c/Users/mihir/AppData/Local/Microsoft/WindowsApps:/mnt/c/Users/mihir/AppData/Local/Programs/oh-my-posh/bin:/mnt/c/Users/mihir/AppData/Local/Programs/Microsoft VS Code/bin:/mnt/c/Users/mihir/AppData/Local/GitHubDesktop/bin:/mnt/c/Users/mihir/AppData/Local/gitkraken/bin:/mnt/c/Users/mihir/bin:/mnt/c/Users/mihir/AppData/Roaming/Code/User/globalStorage/ms-vscode-remote.remote-containers/cli-bin:/snap/bin'
Container: None
[2023-07-21T05:39:27.255Z] Start: Check Docker is running
[2023-07-21T05:39:27.255Z] Start: Run: podman version --format {{.Server.APIVersion}}
[2023-07-21T05:39:27.503Z] Stop (248 ms): Run: podman version --format {{.Server.APIVersion}}
[2023-07-21T05:39:27.503Z] Server API version: 4.5.0
[2023-07-21T05:39:27.503Z] Stop (248 ms): Check Docker is running
[2023-07-21T05:39:27.504Z] Start: Run: podman volume ls -q
[2023-07-21T05:39:27.757Z] Stop (253 ms): Run: podman volume ls -q
[2023-07-21T05:39:27.757Z] Start: Run: podman ps -q -a --filter label=vsch.local.folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --filter label=vsch.quality=stable
[2023-07-21T05:39:28.006Z] Stop (249 ms): Run: podman ps -q -a --filter label=vsch.local.folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --filter label=vsch.quality=stable
[2023-07-21T05:39:28.006Z] Start: Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --filter label=devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json
[2023-07-21T05:39:28.257Z] Stop (251 ms): Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --filter label=devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json
[2023-07-21T05:39:28.257Z] Start: Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot
[2023-07-21T05:39:28.507Z] Stop (250 ms): Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot
[2023-07-21T05:39:28.507Z] Start: Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot
[2023-07-21T05:39:28.746Z] Stop (239 ms): Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot
[2023-07-21T05:39:28.747Z] Start: Run: C:\Users\mihir\AppData\Local\Programs\Microsoft VS Code\Code.exe --ms-enable-electron-run-as-node c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js read-configuration --docker-path podman --workspace-folder c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --id-label devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --id-label devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --mount-workspace-git-root true
[2023-07-21T05:39:28.906Z] @devcontainers/cli 0.46.0. Node.js v16.17.1. win32 10.0.22621 x64.
[2023-07-21T05:39:28.906Z] Start: Run: git rev-parse --show-cdup
[2023-07-21T05:39:28.934Z] Stop (28 ms): Run: git rev-parse --show-cdup
[2023-07-21T05:39:28.935Z] Start: Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --filter label=devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json
[2023-07-21T05:39:29.177Z] Stop (242 ms): Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --filter label=devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json
[2023-07-21T05:39:29.183Z] Stop (436 ms): Run: C:\Users\mihir\AppData\Local\Programs\Microsoft VS Code\Code.exe --ms-enable-electron-run-as-node c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js read-configuration --docker-path podman --workspace-folder c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --id-label devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --id-label devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --mount-workspace-git-root true
[2023-07-21T05:39:29.183Z] Start: Run: C:\Users\mihir\AppData\Local\Programs\Microsoft VS Code\Code.exe --ms-enable-electron-run-as-node c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js up --user-data-folder c:\Users\mihir\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data --docker-path podman --container-session-data-folder /tmp/devcontainers-bae9666a-cbd9-4ecd-bc23-17f1513326bd1689917964940 --workspace-folder c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --workspace-mount-consistency cached --id-label devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --id-label devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-07-21T05:39:29.340Z] @devcontainers/cli 0.46.0. Node.js v16.17.1. win32 10.0.22621 x64.
[2023-07-21T05:39:29.340Z] Start: Run: podman buildx version
[2023-07-21T05:39:29.516Z] Stop (176 ms): Run: podman buildx version
[2023-07-21T05:39:29.516Z] buildah 1.31.0
[2023-07-21T05:39:29.517Z] 
[2023-07-21T05:39:29.517Z] Start: Resolving Remote
[2023-07-21T05:39:29.519Z] Start: Run: git rev-parse --show-cdup
[2023-07-21T05:39:29.543Z] Stop (24 ms): Run: git rev-parse --show-cdup
[2023-07-21T05:39:29.545Z] Start: Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --filter label=devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json
[2023-07-21T05:39:29.796Z] Stop (251 ms): Run: podman ps -q -a --filter label=devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --filter label=devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json
[2023-07-21T05:39:29.797Z] Start: Run: podman inspect --type image mcr.microsoft.com/devcontainers/typescript-node:18
[2023-07-21T05:39:30.030Z] Stop (233 ms): Run: podman inspect --type image mcr.microsoft.com/devcontainers/typescript-node:18
[2023-07-21T05:39:30.030Z] local container features stored at: c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\node_modules\vscode-dev-containers\container-features
[2023-07-21T05:39:30.031Z] Start: Run: tar --no-same-owner -x -f -
[2023-07-21T05:39:30.055Z] Stop (24 ms): Run: tar --no-same-owner -x -f -
[2023-07-21T05:39:30.058Z] Resolving Feature dependencies for 'ghcr.io/devcontainers-contrib/features/typescript:2'...
[2023-07-21T05:39:30.059Z] * Processing feature: ghcr.io/devcontainers-contrib/features/typescript:2
[2023-07-21T05:39:30.521Z] Start: Run: docker-credential-wincred get
[2023-07-21T05:39:30.526Z] findLocalWindowsExecutable: Exectuable 'docker-credential-wincred' not found on PATH 'C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Git\cmd;C:\Program Files\RedHat\Podman\;C:\Program Files (x86)\Gpg4win\..\GnuPG\bin;C:\Users\mihir\AppData\Local\Microsoft\WindowsApps;C:\Users\mihir\AppData\Local\Programs\oh-my-posh\bin;C:\Users\mihir\AppData\Local\Programs\Microsoft VS Code\bin;C:\Users\mihir\AppData\Local\GitHubDesktop\bin;C:\Users\mihir\AppData\Local\gitkraken\bin;C:\Users\mihir\bin;;c:\Users\mihir\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\cli-bin'.
[2023-07-21T05:39:32.139Z] * Processing feature: ghcr.io/devcontainers-contrib/features/npm-package
[2023-07-21T05:39:33.330Z] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/desktop-lite:1'...
[2023-07-21T05:39:33.330Z] * Processing feature: ghcr.io/devcontainers/features/desktop-lite:1
[2023-07-21T05:39:34.517Z] * Processing feature: ghcr.io/devcontainers/features/common-utils
[2023-07-21T05:39:35.816Z] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/git:1'...
[2023-07-21T05:39:35.816Z] * Processing feature: ghcr.io/devcontainers/features/git:1
[2023-07-21T05:39:36.964Z] * Processing feature: ghcr.io/devcontainers/features/common-utils
[2023-07-21T05:39:38.187Z] Resolving Feature dependencies for 'ghcr.io/devcontainers/features/node:1'...
[2023-07-21T05:39:38.187Z] * Processing feature: ghcr.io/devcontainers/features/node:1
[2023-07-21T05:39:39.344Z] * Processing feature: ghcr.io/devcontainers/features/common-utils
[2023-07-21T05:39:40.579Z] Resolving Feature dependencies for 'ghcr.io/dhoeric/features/hadolint:1'...
[2023-07-21T05:39:40.579Z] * Processing feature: ghcr.io/dhoeric/features/hadolint:1
[2023-07-21T05:39:41.758Z] * Processing feature: ghcr.io/devcontainers/features/common-utils
[2023-07-21T05:39:43.013Z] Soft-dependency 'ghcr.io/devcontainers-contrib/features/npm-package' is not required.  Removing from installation order...
[2023-07-21T05:39:43.013Z] Soft-dependency 'ghcr.io/devcontainers/features/common-utils' is not required.  Removing from installation order...
[2023-07-21T05:39:43.013Z] Soft-dependency 'ghcr.io/devcontainers/features/common-utils' is not required.  Removing from installation order...
[2023-07-21T05:39:43.013Z] Soft-dependency 'ghcr.io/devcontainers/features/common-utils' is not required.  Removing from installation order...
[2023-07-21T05:39:43.013Z] Soft-dependency 'ghcr.io/devcontainers/features/common-utils' is not required.  Removing from installation order...
[2023-07-21T05:39:43.013Z] * Fetching feature: typescript_0_oci
[2023-07-21T05:39:43.677Z] * Fetching feature: desktop-lite_1_oci
[2023-07-21T05:39:44.354Z] * Fetching feature: git_2_oci
[2023-07-21T05:39:45.054Z] * Fetching feature: node_3_oci
[2023-07-21T05:39:45.731Z] * Fetching feature: hadolint_4_oci
[2023-07-21T05:39:46.415Z] Start: Run: podman buildx build --load --build-context dev_containers_feature_content_source=C:\Users\mihir\AppData\Local\Temp\devcontainercli\container-features\0.46.0-1689917970030 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/typescript-node:18 --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-discord-ban-utils-bot-1aa5cea51a6a29accd4e5bf90982d33d7326a6face5746c5a4de512e457efaa4-features -f C:\Users\mihir\AppData\Local\Temp\devcontainercli\container-features\0.46.0-1689917970030\Dockerfile.extended c:\Users\mihir\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data\empty-folder
[2023-07-21T05:39:46.496Z] 
[2023-07-21T05:39:46.676Z] time="2023-07-21T11:09:46+05:30" level=error msg="While reading directory C:\\Us
ers\\mihir\\AppData\\Roaming\\Code\\User\\globalStorage\\ms-vscode-remote.remote
-containers\\data\\empty-folder: EOF"
[2023-07-21T05:39:46.769Z] [1/2] STEP 1/4: FROM mcr.microsoft.com/devcontainers/typescript-node:18 AS dev_c
ontainers_feature_content_normalize
[1/2] STEP 2/4: USER root
[2023-07-21T05:39:46.800Z] --> Using cache f02a69516a9b42331906b7d959d7ee3ef9d900eb2d63711a6b2e39db0bd56698
--> f02a69516a9b
[1/2] STEP 3/4: COPY --from=dev_containers_feature_content_source devcontainer-f
eatures.builtin.env /tmp/build-features/
[2023-07-21T05:39:46.831Z] Error: building at STEP "COPY --from=dev_containers_feature_content_source devco
ntainer-features.builtin.env /tmp/build-features/": checking on sources under "/
home/user/C:\\Users\\mihir\\AppData\\Local\\Temp\\devcontainercli\\container-fea
tures\\0.46.0-1689917970030": error in copier subprocess: changing to intended-n
ew-root directory "/home/user/C:\\Users\\mihir\\AppData\\Local\\Temp\\devcontain
ercli\\container-features\\0.46.0-1689917970030": chdir /home/user/C:\Users\mihi
r\AppData\Local\Temp\devcontainercli\container-features\0.46.0-1689917970030: no
 such file or directory

[2023-07-21T05:39:46.893Z] Stop (478 ms): Run: podman buildx build --load --build-context dev_containers_feature_content_source=C:\Users\mihir\AppData\Local\Temp\devcontainercli\container-features\0.46.0-1689917970030 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/typescript-node:18 --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-discord-ban-utils-bot-1aa5cea51a6a29accd4e5bf90982d33d7326a6face5746c5a4de512e457efaa4-features -f C:\Users\mihir\AppData\Local\Temp\devcontainercli\container-features\0.46.0-1689917970030\Dockerfile.extended c:\Users\mihir\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data\empty-folder
[2023-07-21T05:39:46.894Z] Error: Command failed: podman buildx build --load --build-context dev_containers_feature_content_source=C:\Users\mihir\AppData\Local\Temp\devcontainercli\container-features\0.46.0-1689917970030 --build-arg _DEV_CONTAINERS_BASE_IMAGE=mcr.microsoft.com/devcontainers/typescript-node:18 --build-arg _DEV_CONTAINERS_IMAGE_USER=root --build-arg _DEV_CONTAINERS_FEATURE_CONTENT_SOURCE=dev_container_feature_content_temp --target dev_containers_target_stage -t vsc-discord-ban-utils-bot-1aa5cea51a6a29accd4e5bf90982d33d7326a6face5746c5a4de512e457efaa4-features -f C:\Users\mihir\AppData\Local\Temp\devcontainercli\container-features\0.46.0-1689917970030\Dockerfile.extended c:\Users\mihir\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data\empty-folder
[2023-07-21T05:39:46.895Z]     at Mte (c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js:2007:1066)
[2023-07-21T05:39:46.895Z]     at n3 (c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js:2007:1002)
[2023-07-21T05:39:46.895Z]     at process.processTicksAndRejections (node:internal/process/task_queues:96:5)
[2023-07-21T05:39:46.895Z]     at async rre (c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js:2024:3660)
[2023-07-21T05:39:46.895Z]     at async Yf (c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js:2024:4775)
[2023-07-21T05:39:46.895Z]     at async Dne (c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js:2156:12193)
[2023-07-21T05:39:46.895Z]     at async Sne (c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js:2156:11934)
[2023-07-21T05:39:46.901Z] Stop (17718 ms): Run: C:\Users\mihir\AppData\Local\Programs\Microsoft VS Code\Code.exe --ms-enable-electron-run-as-node c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js up --user-data-folder c:\Users\mihir\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data --docker-path podman --container-session-data-folder /tmp/devcontainers-bae9666a-cbd9-4ecd-bc23-17f1513326bd1689917964940 --workspace-folder c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --workspace-mount-consistency cached --id-label devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --id-label devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-07-21T05:39:46.901Z] Exit code 1
[2023-07-21T05:39:46.903Z] Command failed: C:\Users\mihir\AppData\Local\Programs\Microsoft VS Code\Code.exe --ms-enable-electron-run-as-node c:\Users\mihir\.vscode\extensions\ms-vscode-remote.remote-containers-0.299.0\dist\spec-node\devContainersSpecCLI.js up --user-data-folder c:\Users\mihir\AppData\Roaming\Code\User\globalStorage\ms-vscode-remote.remote-containers\data --docker-path podman --container-session-data-folder /tmp/devcontainers-bae9666a-cbd9-4ecd-bc23-17f1513326bd1689917964940 --workspace-folder c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --workspace-mount-consistency cached --id-label devcontainer.local_folder=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot --id-label devcontainer.config_file=c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --log-level debug --log-format json --config c:\Users\mihir\GitHub\Discord-Ban-Utils-Bot\.devcontainer\devcontainer.json --default-user-env-probe loginInteractiveShell --mount type=volume,source=vscode,target=/vscode,external=true --skip-post-create --update-remote-user-uid-default on --mount-workspace-git-root true
[2023-07-21T05:39:46.903Z] Exit code 1

devcontainer.json

{
  "name": "Node.js & TypeScript",
  "image": "mcr.microsoft.com/devcontainers/typescript-node:18",
  "postCreateCommand": "bash .devcontainer/setup.sh",
  "features": {
    "ghcr.io/devcontainers-contrib/features/typescript:2": {},
    "ghcr.io/devcontainers/features/desktop-lite:1": {},
    "ghcr.io/devcontainers/features/git:1": {},
    "ghcr.io/devcontainers/features/node:1": {},
    "ghcr.io/dhoeric/features/hadolint:1": {}
  },
  "customizations": {
    "vscode": {
      "extensions": [
        "christian-kohler.npm-intellisense",
        "christian-kohler.path-intellisense",
        "cschlosser.doxdocgen",
        "dbaeumer.vscode-eslint",
        "eamodio.gitlens",
        "esbenp.prettier-vscode",
        "exiasr.hadolint",
        "MichaelCurrin.auto-commit-msg",
        "p42ai.refactor",
        "Phu1237.vs-browser",
        "redhat.vscode-yaml",
        "spmeesseman.vscode-taskexplorer",
        "streetsidesoftware.code-spell-checker",
        "usernamehw.errorlens"
      ]
    }
  },
  "forwardPorts": [
    5901,
    6080
  ],
  "remoteUser": "vscode",
  "runArgs": [
    "--userns=keep-id:uid=1000,gid=1000"
  ],
  "containerUser": "vscode",
  "updateRemoteUserUID": true,
  "containerEnv": {
    "HOME": "/home/vscode"
  }
}

podman info

host:
  arch: amd64
  buildahVersion: 1.30.0
  cgroupControllers: []
  cgroupManager: cgroupfs
  cgroupVersion: v1
  conmon:
    package: conmon-2.1.7-2.fc37.x86_64
    path: /usr/bin/conmon
    version: 'conmon version 2.1.7, commit: '
  cpuUtilization:
    idlePercent: 99.77
    systemPercent: 0.08
    userPercent: 0.16
  cpus: 16
  databaseBackend: boltdb
  distribution:
    distribution: fedora
    variant: container
    version: "37"
  eventLogger: journald
  hostname: ANT-MRDGH2821
  idMappings:
    gidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 524288
      size: 65536
    uidmap:
    - container_id: 0
      host_id: 1000
      size: 1
    - container_id: 1
      host_id: 524288
      size: 65536
  kernel: 5.15.90.1-microsoft-standard-WSL2
  linkmode: dynamic
  logDriver: journald
  memFree: 13533540352
  memTotal: 16320323584
  networkBackend: netavark
  networkBackendInfo:
    backend: ""
    dns: {}
  ociRuntime:
    name: crun
    package: crun-1.8.5-1.fc37.x86_64
    path: /usr/bin/crun
    version: |-
      crun version 1.8.5
      commit: b6f80f766c9a89eb7b1440c0a70ab287434b17ed
      rundir: /run/user/1000/crun
      spec: 1.0.0
      +SYSTEMD +SELINUX +APPARMOR +CAP +SECCOMP +EBPF +CRIU +LIBKRUN +WASM:wasmedge +YAJL
  os: linux
  pasta:
    executable: ""
    package: ""
    version: ""
  remoteSocket:
    exists: true
    path: /run/user/1000/podman/podman.sock
  security:
    apparmorEnabled: false
    capabilities: 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_CHROOT
    rootless: true
    seccompEnabled: true
    seccompProfilePath: /usr/share/containers/seccomp.json
    selinuxEnabled: false
  serviceIsRemote: true
  slirp4netns:
    executable: /usr/bin/slirp4netns
    package: slirp4netns-1.2.0-8.fc37.x86_64
    version: |-
      slirp4netns version 1.2.0
      commit: 656041d45cfca7a4176f6b7eed9e4fe6c11e8383
      libslirp: 4.7.0
      SLIRP_CONFIG_VERSION_MAX: 4
      libseccomp: 2.5.3
  swapFree: 4294967296
  swapTotal: 4294967296
  uptime: 0h 26m 49.00s
plugins:
  authorization: null
  log:
  - k8s-file
  - none
  - passthrough
  - journald
  network:
  - bridge
  - macvlan
  - ipvlan
  volume:
  - local
registries:
  search:
  - docker.io
store:
  configFile: /home/user/.config/containers/storage.conf
  containerStore:
    number: 1
    paused: 0
    running: 0
    stopped: 1
  graphDriverName: overlay
  graphOptions: {}
  graphRoot: /home/user/.local/share/containers/storage
  graphRootAllocated: 1081101176832
  graphRootUsed: 2446757888
  graphStatus:
    Backing Filesystem: extfs
    Native Overlay Diff: "true"
    Supports d_type: "true"
    Using metacopy: "false"
  imageCopyTmpDir: /var/tmp
  imageStore:
    number: 3
  runRoot: /run/user/1000/containers
  transientStore: false
  volumePath: /home/user/.local/share/containers/storage/volumes
version:
  APIVersion: 4.5.0
  Built: 1681486976
  BuiltTime: Fri Apr 14 21:12:56 2023
  GitCommit: ""
  GoVersion: go1.19.7
  Os: linux
  OsArch: linux/amd64
  Version: 4.5.0

same here, refer this post #17313, but seems podman v4.6.1 still not fix this issue in windows

@worldofgeese
Copy link

worldofgeese commented Nov 16, 2023

To be clear on the specific issue for other users who stumble here from the internet: Dev Container features are not currently supported when using rootless Podman, on any OS whether it's Linux, Windows or macOS. If you remove the features from your .devcontainers.json, the build will work @jakecorrenti. EDIT: I can see that's also your understanding already from your documentation PR. Would it be possible to update this issue name so it's more specific? The issue with an Anaconda devcontainer looks like another kind of bug and could be broken off into a new issue.

I've duplicated this issue with my own error logs on the devcontainers/features GitHub repo as devcontainers/features#755.

I'd love to get @rhatdan's take on this. Rootless Podman is used by default on the new Cloud Native distro, Project Bluefin, led by @bketelsen and @castrojo. It'd be great to have a single container engine implementation devs can use for all their development needs.

@rhatdan
Copy link
Member

rhatdan commented Nov 17, 2023

@n1hility PTAL
I would think Podman should be able to support this. But sadly (or Happily) I live on Linux desktop using Emacs...

@worldofgeese
Copy link

worldofgeese commented Nov 17, 2023

Thanks @rhatdan and @n1hility! To update, a devcontainer-with-features build works if you temporarily change the security context of SELinux on /tmp (taken from devcontainers/cli#548 (comment)):

sudo chcon -R -t container_file_t /tmp/
devcontainer build --docker-path podman --workspace-folder ./
sudo restorecon -RFv /tmp/

My specific issue is also replicated in microsoft/vscode-remote-release#8557. So it would seem that some change between 0.275.1 and 0.282.0 of the ms-vscode-remote.remote-containers extension broke Podman with SELinux from building devcontainers with features.

Tracking in devcontainers/features#755. @samruddhikhandale, who works at GitHub, very helpfully guided me to this workaround.

@n1hility
Copy link
Member

@worldofgeese thanks for reporting back (btw great nick/handle!). I took a look at the issues, and I think we are just stuck waiting on the vscode team to fix this. If it was open source we could investigate a patch, but looks like the respective modules are proprietary. If there was a way to replace tmp with a common subdir (e.g. /tmp/devcontainers (might be possible with TMPDIR env) then you could set the selinux label permanently on that dir and not have to worry about it anymore. Other than that I think we just have to wait for them to specify a z mount flag.

@n1hility
Copy link
Member

but looks like the respective modules are proprietary.

@worldofgeese Actually the devcontainers CLI RI is open which I think remote containers is just rebundling. Will take a look when I get a chance soon. Sorry for causing any confusion was looking for the source of remote release and hit their FAQ for “why not OSS?”

@worldofgeese
Copy link

worldofgeese commented Nov 19, 2023

@worldofgeese Actually the devcontainers CLI RI is open which I think remote containers is just rebundling. Will take a look when I get a chance soon.

All good and thank you for taking a look! I'll edit my comment in the other thread to remove my query around Dev Containers being proprietary. I'll also edit the quoted passage to reflect.

@n1hility
Copy link
Member

n1hility commented Nov 20, 2023

So I took a look and the good news is that this would be a fairly simple fix on the devcontainers side (mount with z in two places, so things are properly relabeled). The bad news is that fixing this for selinux labeled volumes on Linux will break it on Mac/Windows since mounted host volumes don't support selinux context xattrs. We have talked about making non-supporting filesystems ignore relabeling (e.g. just warn/debug if we see EOPNOTSUPP [ see convo in /~https://github.com//issues/19852 and other related issues]). Since this is a frequent pain point I'll try to find some time (probably after the holiday) to propose a patch on this.

// cc @rhatdan

@sanmai-NL
Copy link
Contributor

Agree about the pain point!

@rhatdan
Copy link
Member

rhatdan commented Nov 21, 2023

I think it makes sense to just warn on ENOSUP

@usma0118
Copy link

usma0118 commented Jun 3, 2024

@n1hility any news on this? a pain point for me on Mac.

@l0rd l0rd self-assigned this Oct 31, 2024
@l0rd l0rd changed the title Issues with VSCode Dev Containers Compatability Issues with VSCode Dev Containers Compatibility Nov 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Categorizes issue or PR as related to a bug.
Projects
None yet
Development

No branches or pull requests

10 participants