devcontainers / devcontainers/cli

`devcontainer exec` tries to use different container than the response of `devcontainer up` in WSL

Open
#135 8 comments 2 reactions 1 assignee Claimed by @chrmarti View on GitHub
bug
Dominant language
TypeScript
Stars
3k
Forks
457
Avg merge
13h 17m
Merged PRs (30d)
6

Description

`devcontainer exec` tries to use different container than the response of `devcontainer up`.

```
$ devcontainer up --workspace-folder .
[14 ms] @devcontainers/cli 0.12.1.
{"outcome":"success","containerId":"66d0453b1f8340282242c2efeff1e79af03734b45d56cfc7630b5b92b108880e","composeProjectName":"masked","remoteUser":"vscode","remoteWorkspaceFolder":"/workspace"}
$ devcontainer exec --workspace-folder . pwd
Shell server terminated (code: 1, signal: null)

Error response from daemon: Container 7a07354654d1bc329e8ba1ba2721582171fe483c541e5ee65f042c9dc6d7fe4f is not running

{"outcome":"error","message":"An error occurred running a command in the container.","description":"An error occurred running a command in the container."}
```

Version info: `devcontainer@0.12.1 /home/sarisia/.asdf/installs/nodejs/18.5.0/.npm/lib/node_modules/@devcontainers/cli`

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.