mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Move CgroupnsMode feature to API v1.41
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
771fc7e7f8
commit
7bacd1d6dc
2 changed files with 7 additions and 6 deletions
|
@ -489,7 +489,8 @@ func (s *containerRouter) postContainersCreate(ctx context.Context, w http.Respo
|
||||||
if hostConfig.IpcMode.IsEmpty() {
|
if hostConfig.IpcMode.IsEmpty() {
|
||||||
hostConfig.IpcMode = container.IpcMode("shareable")
|
hostConfig.IpcMode = container.IpcMode("shareable")
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
if hostConfig != nil && versions.LessThan(version, "1.41") {
|
||||||
// Older clients expect the default to be "host"
|
// Older clients expect the default to be "host"
|
||||||
if hostConfig.CgroupnsMode.IsEmpty() {
|
if hostConfig.CgroupnsMode.IsEmpty() {
|
||||||
hostConfig.CgroupnsMode = container.CgroupnsMode("host")
|
hostConfig.CgroupnsMode = container.CgroupnsMode("host")
|
||||||
|
|
|
@ -17,6 +17,11 @@ keywords: "API, Docker, rcli, REST, documentation"
|
||||||
|
|
||||||
[Docker Engine API v1.41](https://docs.docker.com/engine/api/v1.41/) documentation
|
[Docker Engine API v1.41](https://docs.docker.com/engine/api/v1.41/) documentation
|
||||||
|
|
||||||
|
* `POST /containers/create` on Linux now accepts the `HostConfig.CgroupnsMode` property.
|
||||||
|
Set the property to `host` to create the container in the daemon's cgroup namespace, or
|
||||||
|
`private` to create the container in its own private cgroup namespace. The per-daemon
|
||||||
|
default is `host`, and can be changed by using the`CgroupNamespaceMode` daemon configuration
|
||||||
|
parameter.
|
||||||
|
|
||||||
|
|
||||||
## v1.40 API changes
|
## v1.40 API changes
|
||||||
|
@ -74,11 +79,6 @@ keywords: "API, Docker, rcli, REST, documentation"
|
||||||
* `POST /containers/{id}/update` now accepts a `PidsLimit` field to tune a container's
|
* `POST /containers/{id}/update` now accepts a `PidsLimit` field to tune a container's
|
||||||
PID limit. Set `0` or `-1` for unlimited. Leave `null` to not change the current value.
|
PID limit. Set `0` or `-1` for unlimited. Leave `null` to not change the current value.
|
||||||
* `POST /build` now accepts `outputs` key for configuring build outputs when using BuildKit mode.
|
* `POST /build` now accepts `outputs` key for configuring build outputs when using BuildKit mode.
|
||||||
* `POST /containers/create` on Linux now accepts the `HostConfig.CgroupnsMode` property.
|
|
||||||
Set the property to `host` to create the container in the daemon's cgroup namespace, or
|
|
||||||
`private` to create the container in its own private cgroup namespace. The per-daemon
|
|
||||||
default is `host`, and can be changed by using the`CgroupNamespaceMode` daemon configuration
|
|
||||||
parameter.
|
|
||||||
|
|
||||||
## V1.39 API changes
|
## V1.39 API changes
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue