docker buildkit no longer supports --network as valid parameter
Open
Nobody has claimed this yet.
area/buildkit
area/feature-parity
kind/enhancement
- Dominant language
- Go
- Stars
- 4.5k
- Forks
- 682
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 29
Description
- [ x] I have tried with the latest version of Docker Desktop
- [ x] I have tried disabling enabled experimental features
- [ x] I have uploaded Diagnostics
- Diagnostics ID: 2051B26A-E0D7-4509-844F-4C4BE9D36149/20210408212242
Expected behavior
docker build --network foo . should work
Actual behavior
Error response from daemon: network mode "foo" not supported by buildkit
Information
- macOS Version: 10.15.7 (19H524)
- Docker Desktop Version: 3.2.2 (61853)
Steps to reproduce the behavior
- docker network create foo
- docker run --network foo -d mysql
- docker build --network foo -t bar .
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 reproducing the documented sequence with docker network create foo, docker run --network foo -d mysql, and docker build --network foo -t bar . on the reported setup. Trace how the docker build command handles the --network value under BuildKit, and consider the issue done when the custom foo network is accepted rather than rejected.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, go
- Domain
- cli, networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 38/100