devcontainers / devcontainers/cli

allow exec command after --workspace-folder flag

Open
#1,050 6 comments 1 reaction 2 assignees Claimed by @v-Kaniska244 View on GitHub
Dominant language
TypeScript
Stars
3k
Forks
457
Avg merge
13h 17m
Merged PRs (30d)
6

Description

It seems that the 'exec' command is only allowed as the first parameter.

```
devcontainer --workspace-folder . exec ls
OCI runtime exec failed: exec failed: unable to start container process: exec: "exec": executable file not found in $PATH: unknown
```

Like `up` etc., it expects options followed by `exec` to be allowed.

With this change, one can create an alias as `alias devc="devcontainer --workspace-folder PATH"`.

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.