docker / docker/buildx

docker buildkit no longer supports --network as valid parameter

Open
#591 2 comments 0 reactions 0 assignees View on GitHub

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
  1. docker network create foo
  2. docker run --network foo -d mysql
  3. docker build --network foo -t bar .

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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.