WENJUN CHI
WENJUN CHI

Reputation: 523

what's the different bewteen docker stop and docker container stop?

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

Answers (1)

Shashank V
Shashank V

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

Related Questions