6 ms·
Why is `docker run` "unusual in production"? I prefer it over `docker-compose` because it eliminates one mostly useless layer of abstraction.
by silverwind 3y ago
Why is `docker run` "unusual in production"? I prefer it over `docker-compose` because it eliminates one mostly useless layer of abstraction.
- Helmut10001 3y agoJust one reason for me is that I can add the docker-compose.yml to git to track changes over time and have a more reproducible setup.
- zerof1l 3y agoBecause when you run 10 services most of whom require at least one supporting service and for each service you need to specify at least 5 different options (volumes, resource limits, health check, depends on, mac address, IP address, etc); with just `docker run` you will have a mess. It's much simpler to have a docker-compose file per service with all of its dependent services. The docker compose to plain docker run is the same as C/C++ to Assembly.