devcontainers / devcontainers/features

no internet in features with --network=host argument

Open
#946 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Shell
Stars
1.5k
Forks
621
Avg merge
2d 11h
Merged PRs (30d)
4

Description

When starting devcontainers with "runArgs": ["--network=host"] the script used in local "features": { "./gdbinit":{} } has no internet connection / can't download any external scripts.
When using a proxy the features are able to download external items.

It seems to me that the features are startet in a stage where the container is not ready yet.

Starting the same script with "postStartCommand": "chmod +x .devcontainer/gdbinit/install.sh; .devcontainer/gdbinit/install.sh"
works without any error.

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.