Files
docker-cli/components/engine/daemon
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-14 15:15:09 -05:00
2016-09-16 12:27:13 -04:00
2016-09-07 11:05:58 -07:00
2016-10-28 11:06:54 -07:00
2016-10-25 06:43:54 +00:00
2016-11-22 12:49:38 +00:00
2016-11-22 12:49:38 +00:00
2016-11-16 13:38:45 -08:00
2016-11-22 12:49:38 +00:00
2016-11-03 10:05:11 -07:00
2016-11-03 10:05:11 -07:00
2016-11-03 10:05:11 -07:00
2016-11-17 13:10:48 -05:00
2016-11-22 12:49:38 +00:00
2016-09-16 12:27:13 -04:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-11-08 17:41:56 -08:00
2016-11-22 12:49:38 +00:00
2016-10-27 10:34:38 -07:00
2016-10-27 10:34:38 -07:00
2016-11-18 18:32:02 -08:00
2016-09-07 11:05:58 -07:00
2016-10-06 17:12:17 -07:00
2016-09-07 11:05:58 -07:00
2016-10-20 17:06:11 +02:00
2016-06-27 10:23:37 -07:00
2016-06-27 10:23:37 -07:00
2016-09-07 11:05:58 -07:00
2016-10-06 22:48:53 -03:00
2016-09-07 11:05:58 -07:00
2016-11-23 09:28:13 +08:00
2016-10-27 10:34:38 -07:00
2016-11-14 15:15:09 -05:00
2016-09-13 09:55:35 -04:00
2016-11-28 16:54:56 -08:00
2016-11-22 14:32:07 -08:00
2016-11-04 13:38:50 -07:00
2016-10-25 06:43:54 +00:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-09-16 11:56:15 -07:00
2016-09-16 11:56:15 -07:00
2016-09-21 12:36:52 +02:00
2016-09-16 11:56:15 -07:00
2016-11-22 12:49:38 +00:00
2016-09-07 11:05:58 -07:00
2016-09-07 11:05:58 -07:00
2016-11-21 19:56:01 +08:00
2016-11-22 12:49:38 +00:00