Update RestartPolicy of container
Add `--restart` flag for `update` command, so we can change restart policy for a container no matter it's running or stopped. Signed-off-by: Zhang Wei <zhangwei555@huawei.com> Upstream-commit: ff3ea4c90f2ede5cccc6b49c4d2aad7201c91a4c Component: engine
This commit is contained in:
@ -117,7 +117,7 @@ This section lists each version from latest to oldest. Each listing includes a
|
||||
|
||||
* `GET /containers/json` returns the state of the container, one of `created`, `restarting`, `running`, `paused`, `exited` or `dead`.
|
||||
* `GET /networks/(name)` now returns an `Internal` field showing whether the network is internal or not.
|
||||
|
||||
* `POST /containers/(name)/update` now supports updating container's restart policy.
|
||||
|
||||
### v1.22 API changes
|
||||
|
||||
|
||||
Reference in New Issue
Block a user