devcontainers / devcontainers/cli

runArgs is not honoured

Đang mở
#1,099 5 bình luận 0 reaction 2 người được giao Được @sireeshajonnalagadda nhận Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
3k
Fork
457
Merge trung bình
13 giờ 17 phút
Pull request đã merge (30 ngày)
6

Mô tả

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.