Reputation: 8961
Trying to figure out the difference between docker
and docker-compose
, it looks like the docker-compose
CLI effectively provides a means of running the docker
CLI indirectly via configuration (What is the difference between docker and docker-compose).
Is there anything that you can do with the docker
CLI that COULDN'T be specified in docker-compose.yml
?
Upvotes: 0
Views: 74
Reputation: 2184
The docker
CLI offers more options to you (e.g. docker history
to inspect an image's history, just to name one) than the docker-compose.yml
. But the latter is meant for a very different purpose, namely making the deployment of multi-container applications easier.
So, to my knowledge, if we just look at the aspects of starting and configuring containers, you can do everything with docker-compose
that "plain" docker
can do, but in a much more comfortable way.
Upvotes: 2