Skip to content

Commit 64e9cad

Browse files
Chris ChinchillathaJeztah
andcommitted
Add networking reference link
Co-authored-by: Sebastiaan van Stijn <[email protected]> Signed-off-by: Chris Chinchilla <[email protected]>
1 parent 21682eb commit 64e9cad

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

docs/reference/commandline/build.md

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ Build an image from a Dockerfile
2929
| `--label` | `list` | | Set metadata for an image |
3030
| `-m`, `--memory` | `bytes` | `0` | Memory limit |
3131
| `--memory-swap` | `bytes` | `0` | Swap limit equal to memory plus swap: -1 to enable unlimited swap |
32-
| `--network` | `string` | `default` | Set the networking mode for the RUN instructions during build |
32+
| [`--network`](#network) | `string` | `default` | Set the networking mode for the RUN instructions during build |
3333
| `--no-cache` | | | Do not use cache when building the image |
3434
| `--platform` | `string` | | Set platform if server is multi-platform capable |
3535
| `--pull` | | | Always attempt to pull a newer version of the image |
@@ -630,6 +630,18 @@ On another machine:
630630
$ docker build --cache-from myname/myapp .
631631
```
632632

633+
### <a name="network"></a> Set the networking mode for the RUN instructions during build (--network)
634+
635+
#### Overview
636+
637+
Available options for the networking mode are:
638+
639+
- `default` (default): Run in the default network.
640+
- `none`: Run with no network access.
641+
- `host`: Run in the host’s network environment.
642+
643+
Find more details in the [Dockerfile documentation](https://docs.docker.com/engine/reference/builder/#run---network).
644+
633645
### <a name="squash"></a> Squash an image's layers (--squash) (experimental)
634646

635647
#### Overview

0 commit comments

Comments
 (0)