devcontainers / devcontainers/cli

runArgs is not honoured

Open
#1,099 5 comments 0 reactions 2 assignees Claimed by @sireeshajonnalagadda View on GitHub
Dominant language
TypeScript
Stars
3k
Forks
457
Avg merge
13h 17m
Merged PRs (30d)
6

Description

I specified the runArgs as following:
```
runArgs: [
"--network=host"
],
```

But the output in the console is as following:
```
[33764 ms] Start: Run: docker run --sig-proxy=false -a STDOUT -a STDERR --mount type=bind,source=/Users/abc/Code/my-projects/self-hosted,target=/workspaces/self-hosted,consistency=cached --mount type=bind,src=/Users/abc/.config/git,dst=/home/code/.config/git,readOnly=true --mount type=bind,src=/Users/abc/.gnupg,dst=/home/code/.gnupg,readOnly=true --mount type=bind,src=/Users/abc/.ssh,dst=/home/code/.ssh,readOnly=true --mount type=bind,src=/Users/abc/.config/fish,dst=/home/code/.config/fish,readOnly=true --mount type=bind,src=/Users/abc/.config/fisher,dst=/home/code/.config/fisher,readOnly=true --mount type=bind,src=/Users/abc/.config/starship.toml,dst=/home/code/.config/starship.toml,readOnly=true --mount type=bind,src=/private/tmp/com.apple.launchd.0EfLKESZrA/Listeners,dst=/ssh-agent.sock -l devcontainer.local_folder=/Users/abc/Code/my-projects/self-hosted -l devcontainer.config_file=/Users/abc/Code/my-projects/self-hosted/.devcontainer/devcontainer.json --entrypoint /bin/sh vsc-self-hosted-8a813f76c3e5b6b339512e0f340a5fc06582f40f5d6d07e4f24aa6f4ab521f81 -c echo Container started
Container started
{"outcome":"success","containerId":"aebc5fe909ad47ea8d70a7fd7bb9c4a6d7672b0856e8d3aef0a289a015727862","remoteUser":"code","remoteWorkspaceFolder":"/workspaces/self-hosted"}
```

It does not container the `--network=host` part. My workaround is to modify the code directly on my local machine

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.