Ability to configure default networking type
Nobody has claimed this yet.
- Dominant language
- Go
- Stars
- 6.1k
- Forks
- 2.2k
- Avg merge
- 1d 15h
- Merged PRs (30d)
- 43
Description
Description
The cli currently defaults to bridge networking when --network is not supplied when calling docker run.
My use-case is to use host networking with GitHub docker actions. As the docker command is called by GitHub Actions itself, I am unable to add the --network flag to the command.
It would be nice if we can configure the default network type either via an environment variable or in config.json to set the network type to use in the event the --network flag is not supplied.
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by tracing how the Docker CLI handles docker run when --network is omitted, then review the proposed environment-variable and config.json configuration paths. Define the supported way to select a default network type and verify that an explicit --network value still takes precedence; done means host networking can be selected for GitHub Actions without changing the command.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- cli
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100