0

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?

Zach Smith
  • 8,458
  • 13
  • 59
  • 133

1 Answers1

2

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.

bellackn
  • 1,939
  • 13
  • 22
  • Thank you - it's interesting to know that the use of docker CLI comprises more than just managing a single container. But yes, I was asking the question specifically from the perspective of configuring / starting containers – Zach Smith May 06 '19 at 10:56