Bug 1260386

Summary: "docker restart" works on stopped containers as well, unlike what man page claims
Product: [Fedora] Fedora Reporter: Robert P. J. Day <rpjday>
Component: dockerAssignee: Sally <somalley>
Status: CLOSED CURRENTRELEASE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 22CC: adimania, admiller, dwalsh, ichavero, jcajka, jchaloup, lsm5, miminar, vbatts
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-02-16 17:20:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Robert P. J. Day 2015-09-06 10:44:03 UTC
"man docker-restart" reads:

  NAME
         docker-restart - Restart a running container

but "restart" appears to work equally well on stopped containers as well, so the man page seems incorrect.

  Also, while you're there, might as well tidy up the indentation:

       --help
         Print usage statement

       -t, --time=10
          Number of seconds to try ...
          ^ Indentation seems off here.

Comment 1 Sally 2015-09-09 10:59:31 UTC
https://github.com/docker/docker/pull/16174

The indentation diff has no effect on the rendering so I left as/is, after way too much consideration :)

Comment 2 Sally 2015-09-21 20:17:57 UTC
https://github.com/docker/docker/pull/16174 merged
also fixed 5 other files from "restart a running container" to "restart a container"

Comment 3 Daniel Walsh 2015-09-22 18:09:55 UTC
fixed in docker-1.9