mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 05:31:47 +00:00
Merge pull request #11410 from cpuguy83/10191_build_resources
Allow setting resource constraints for build
This commit is contained in:
@@ -14,6 +14,11 @@ docker-build - Build a new image from the source code at PATH
|
||||
[**-q**|**--quiet**[=*false*]]
|
||||
[**--rm**[=*true*]]
|
||||
[**-t**|**--tag**[=*TAG*]]
|
||||
[**-m**|**--memory**[=*MEMORY*]]
|
||||
[**--memory-swap**[=*MEMORY-SWAP*]]
|
||||
[**-c**|**--cpu-shares**[=*0*]]
|
||||
[**--cpuset-cpus**[=*CPUSET-CPUS*]]
|
||||
|
||||
PATH | URL | -
|
||||
|
||||
# DESCRIPTION
|
||||
|
||||
@@ -31,7 +31,7 @@ docker-run - Run a command in a new container
|
||||
[**--lxc-conf**[=*[]*]]
|
||||
[**--log-driver**[=*[]*]]
|
||||
[**-m**|**--memory**[=*MEMORY*]]
|
||||
[**--memory-swap**[=*MEMORY-SWAP]]
|
||||
[**--memory-swap**[=*MEMORY-SWAP*]]
|
||||
[**--mac-address**[=*MAC-ADDRESS*]]
|
||||
[**--name**[=*NAME*]]
|
||||
[**--net**[=*"bridge"*]]
|
||||
|
||||
@@ -60,13 +60,18 @@ You can set ulimit settings to be used within the container.
|
||||
`GET /info`
|
||||
|
||||
**New!**
|
||||
This endpoint now returns `SystemTime`, `HttpProxy`,`HttpsProxy` and `NoProxy`.
|
||||
This endpoint now returns `SystemTime`, `HttpProxy`,`HttpsProxy` and `NoProxy`.
|
||||
|
||||
`GET /images/json`
|
||||
|
||||
**New!**
|
||||
Added a `RepoDigests` field to include image digest information.
|
||||
|
||||
`POST /build`
|
||||
|
||||
**New!**
|
||||
Builds can now set resource constraints for all containers created for the build.
|
||||
|
||||
## v1.17
|
||||
|
||||
### Full Documentation
|
||||
|
||||
@@ -1156,6 +1156,10 @@ Query Parameters:
|
||||
- **pull** - attempt to pull the image even if an older image exists locally
|
||||
- **rm** - remove intermediate containers after a successful build (default behavior)
|
||||
- **forcerm** - always remove intermediate containers (includes rm)
|
||||
- **memory** - set memory limit for build
|
||||
- **memswap** - Total memory (memory + swap), `-1` to disable swap
|
||||
- **cpushares** - CPU shares (relative weight)
|
||||
- **cpusetcpus** - CPUs in which to allow exection, e.g., `0-3`, `0,1`
|
||||
|
||||
Request Headers:
|
||||
|
||||
|
||||
@@ -515,6 +515,10 @@ is returned by the `docker attach` command to its caller too:
|
||||
-q, --quiet=false Suppress the verbose output generated by the containers
|
||||
--rm=true Remove intermediate containers after a successful build
|
||||
-t, --tag="" Repository name (and optionally a tag) for the image
|
||||
-m, --memory="" Memory limit for all build containers
|
||||
--memory-swap="" Total memory (memory + swap), `-1` to disable swap
|
||||
-c, --cpu-shares CPU Shares (relative weight)
|
||||
--cpuset-cpus="" CPUs in which to allow exection, e.g. `0-3`, `0,1`
|
||||
|
||||
Builds Docker images from a Dockerfile and a "context". A build's context is
|
||||
the files located in the specified `PATH` or `URL`. The build process can
|
||||
|
||||
Reference in New Issue
Block a user