devcontainers / devcontainers/cli

runArgs is not honoured

未关闭
#1,099 5 条评论 0 个 reaction 已指派 2 人 已被 @sireeshajonnalagadda 认领 在 GitHub 查看
主要语言
TypeScript
星标
3k
派生
457
平均合并
13 小时 17 分钟
30 天内合并 PR
6

描述

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

贡献指南

打开贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。