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:
Zhang Wei
2016-01-04 23:58:20 +08:00
parent 7b8239e00e
commit f153cf13ed
17 changed files with 154 additions and 33 deletions

View File

@ -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