mirror of
https://github.com/docker/cli.git
synced 2026-01-15 07:40:57 +03:00
Add docs for auto-removal on daemon
Docs for #20848: move "--rm" to daemon side. Add description for introduced API changes. Signed-off-by: Zhang Wei <zhangwei555@huawei.com> Upstream-commit: 7df815d2afe006ece9a3bc5c0642bd7643f40124 Component: engine
This commit is contained in:
@@ -116,7 +116,7 @@ This section lists each version from latest to oldest. Each listing includes a
|
||||
|
||||
[Docker Remote API v1.25](docker_remote_api_v1.25.md) documentation
|
||||
|
||||
* `POST /containers/create` now takes `AutoRemove` in HostConfig, auto-removal will be done on daemon side.
|
||||
* `POST /containers/create` now takes `AutoRemove` in HostConfig, to enable auto-removal of the container on daemon side when the container's process exits.
|
||||
|
||||
### v1.24 API changes
|
||||
|
||||
|
||||
@@ -459,6 +459,8 @@ Create a container
|
||||
The default is not to restart. (optional)
|
||||
An ever increasing delay (double the previous delay, starting at 100mS)
|
||||
is added before each restart to prevent flooding the server.
|
||||
- **AutoRemove** - Boolean value, set to `true` to automatically remove the container on daemon side
|
||||
when the container's process exits.
|
||||
- **UsernsMode** - Sets the usernamespace mode for the container when usernamespace remapping option is enabled.
|
||||
supported values are: `host`.
|
||||
- **NetworkMode** - Sets the networking mode for the container. Supported
|
||||
|
||||
Reference in New Issue
Block a user