Skip to content

wslc inspect doesn’t accept Docker-style /name container references (breaks Dev Containers “Attach”) #41846

Closed

Description

@deamen

Windows Version

Microsoft Windows [Version 10.0.26200.9457]

WSL Version

3.0.1.0

Are you using WSL 1, WSL 2, or WSLC?

  • WSL 2
  • WSL 1
  • WSLC

Kernel Version

6.18.40.1-1

Distro Version

Red Hat Enterprise Linux release 9.8 (Plow)

Other Software

Dev Containers 0.469.0
VS Code 1.142.0-insider

Repro Steps

> wslc inspect --type container /test-wslc
Object not found: /test-wslc
[]
> wslc inspect --type container test-wslc
[ { ... } ]   # works

Expected Behavior

Same result as docker inspect /test-wslc. Docker stores names with a leading / and accepts both forms.

Actual Behavior

Dev Containers → “Attach to Running Container” calls wslc inspect --type container /test-wslc and fails with “Cannot attach to the container with name/id /test-wslc, it no longer exists.”

Diagnostic Logs

No response

Activity

  1. github-actions commented on Oct 9, 2026

    @github-actions
    Contributor

    Logs are required for review from WSL team

    If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
    Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

    How to collect WSL logs

    Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

    Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
    Set-ExecutionPolicy Bypass -Scope Process -Force
    .\collect-wsl-logs.ps1
    

    The script will output the path of the log file once done.

    If this is a networking issue, please use .\collect-wsl-logs.ps1 -LogProfile networking instead, following the instructions in Collect WSL logs for networking issues

    Once completed please upload the output files to this GitHub issue.

    See Collect WSL logs (recommended method).

    If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.

  2. deamen commented on Oct 9, 2026

    @deamen
    Author

    This has been reported in the vscode-remote-release microsoft/vscode-remote-release#11841
    But feels like this is a compatibility issue in wslc, as podman does not have this issue

  3. deamen commented on Oct 9, 2026

    @deamen
    Author

    /emailed-logs

    1. Logs are required for review from WSL team

      If this a feature request, please reply with '/feature'. If this is a question, reply with '/question'.
      Otherwise, please attach logs by following the instructions below, your issue will not be reviewed unless they are added. These logs will help us understand what is going on in your machine.

      How to collect WSL logs
      Download and execute collect-wsl-logs.ps1 in an administrative powershell prompt:

      Invoke-WebRequest -UseBasicParsing "https://raw.githubusercontent.com/microsoft/WSL/master/diagnostics/collect-wsl-logs.ps1" -OutFile collect-wsl-logs.ps1
      Set-ExecutionPolicy Bypass -Scope Process -Force
      .\collect-wsl-logs.ps1
      

      The script will output the path of the log file once done.
      If this is a networking issue, please use .\collect-wsl-logs.ps1 -LogProfile networking instead, following the instructions in Collect WSL logs for networking issues
      Once completed please upload the output files to this GitHub issue.
      See Collect WSL logs (recommended method).
      If you choose to email these logs instead of attaching them to the bug, please send them to [email protected] with the GitHub issue number in the subject, and include a link to your GitHub issue comment in the message body, and reply with '/emailed-logs'.

    /emailed-logs

  4. github-actions commented on Oct 9, 2026

    @github-actions
    Contributor
    Diagnostic information
    Found '/emailed-logs', adding tag 'emailed-logs'
    
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions