Skip to content

docs: say build.network is a mode, not a Compose network - #25881

Open
locker95 wants to merge 1 commit into
docker:mainfrom
locker95:docs/compose-build-network-mode
Open

docs: say build.network is a mode, not a Compose network#25881
locker95 wants to merge 1 commit into
docker:mainfrom
locker95:docs/compose-build-network-mode

Conversation

@locker95

Copy link
Copy Markdown
Contributor

build.network was showing custom_network_1, which looks like a user-defined Compose network. it's the RUN networking mode (default / none / host), same as docker build --network.

@netlify /reference/compose-file/build/

Fixes #21982

The custom_network_1 example looked like a user-defined Compose
network. build.network is the same as docker build --network
(default/none/host).

Signed-off-by: Dean Chen <862469039@qq.com>
@netlify

netlify Bot commented Aug 18, 2026

Copy link
Copy Markdown

Deploy Preview for docsdocker ready!

Name Link
🔨 Latest commit 61ac731
🔍 Latest deploy log https://app.netlify.com/projects/docsdocker/deploys/6a83d6e27ee54f00082c5daf
😎 Deploy Preview https://deploy-preview-25881--docsdocker.netlify.app/reference/compose-file/build/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions Bot added the area/compose Relates to docker-compose.yml spec or docker-compose binary label Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/compose Relates to docker-compose.yml spec or docker-compose binary

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docker image build --network refers to netwoking type

1 participant