runArgs is not honoured

Open
#1,099 5 comments 0 reactions 2 assignees View on GitHub

@sireeshajonnalagadda is already working on this.

Since Jan 14, 2026.

Assessment

This issue has not been assessed yet.

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

Dominant language
TypeScript
Stars
3k
Forks
461
Avg merge
18m
Merged PRs (30d)
5

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from devcontainers/cli

All issues in devcontainers/cli

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.