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!
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With