Update the option 'network' for docker build
Signed-off-by: yuexiao-wang <wang.yuexiao@zte.com.cn>
This commit is contained in:
parent
5bfa17e58b
commit
378a9d816b
@ -38,8 +38,7 @@ Options:
|
||||
--label value Set metadata for an image (default [])
|
||||
-m, --memory string Memory limit
|
||||
--memory-swap string Swap limit equal to memory plus swap: '-1' to enable unlimited swap
|
||||
--network string Set the networking mode for the run commands
|
||||
during build.
|
||||
--network string Set the networking mode for the RUN instructions during build
|
||||
'bridge': use default Docker bridge
|
||||
'none': no networking
|
||||
'container:<name|id>': reuse another container's network stack
|
||||
|
@ -2,7 +2,7 @@
|
||||
% Docker Community
|
||||
% JUNE 2014
|
||||
# NAME
|
||||
docker-build - Build a new image from the source code at PATH
|
||||
docker-build - Build an image from a Dockerfile
|
||||
|
||||
# SYNOPSIS
|
||||
**docker build**
|
||||
@ -130,7 +130,9 @@ set as the **URL**, the repository is cloned locally and then sent as the contex
|
||||
unit, `b` is used. Set LIMIT to `-1` to enable unlimited swap.
|
||||
|
||||
**--network**=*NETWORK*
|
||||
|
||||
Set the networking mode for the RUN instructions during build. Supported standard
|
||||
values are: `bridge`, `host`, `none` and `container:<name|id>`. Any other value
|
||||
is taken as a custom network's name or ID which this container should connect to.
|
||||
|
||||
**--shm-size**=*SHM-SIZE*
|
||||
Size of `/dev/shm`. The format is `<number><unit>`. `number` must be greater than `0`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user