Files
docker-cli/components/engine/integration-cli
Sebastiaan van Stijn 9e849b264c Fix restartpolicy max-retry validation
the restart policy validation was moved from
the client to the daemon in 94e95e4711643640701bd614902e75a2d01f12c5

As part of that change, retry-counts < 1
were marked as "invalid".

However, the default is 0 (unlimited), causing

    docker run -d --restart=on-failure nginx

To fail.

This changes the validation to only invalidate
retry-counts < 0.

A test was added, and other tests renamed
to allow running just these tests :)

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Upstream-commit: 9db5d649aea1c3d4728d0159bb5175a49f77748e
Component: engine
2016-12-02 02:39:16 +01:00
..
2016-11-18 15:51:36 +08:00
2016-10-29 15:03:26 +08:00
2016-06-02 17:17:22 +08:00
2016-09-07 17:30:35 -04:00
2016-11-04 13:38:50 -07:00
2016-09-02 19:07:54 -07:00