Validate run restart option value. Default value is “none”, instead of “no”, this is more in line with compose values, and changes only the default so should not have too much impact on legacy usage.

This commit is contained in:
Guillaume Tardif 2020-08-04 10:22:07 +02:00
parent a2c2d6aa5d
commit f442eafe0b
16 changed files with 145 additions and 86 deletions

View file

@ -31,7 +31,7 @@ docker run [OPTIONS] _image_ [COMMAND] [ARG...]
--cpus Number of CPUs to allocate, approximately
-p, --publish list Publish a container's port(s) to the host
-P, --publish-all Publish all exposed ports to random ports
--restart string Restart policy to apply when a container exits (default "no")
--restart string Restart policy to apply when a container exits (default "none")
--entrypoint string Overwrite the default ENTRYPOINT of the image
--mount mount Attach a filesystem mount to the container