Reputation: 523
We can use docker stop xxx or docker container stop xxx to stop a container, but what's the difference between these? I looked at the official docs, the two commands had the same description and usage format.
Also, what's the parent command meaning in docker? Thanks!
Upvotes: 4
Views: 509
Reputation: 11183
Both are same. Some frequently used commands like docker container stop
etc have shortened aliases under docker
parent command.
Parent command is just the command one level up. For docker container stop
, stop
is the subcommand of docker container
and docker container
is called the parent command.
Upvotes: 2