mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
the restart policy validation was moved from the client to the daemon in94e95e4711As 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> (cherry picked from commit9db5d649ae) Signed-off-by: Victor Vieux <victorvieux@gmail.com>
64 KiB
64 KiB