上QQ阅读APP看书,第一时间看更新
Operating with an immutable container
Docker commands such as the ones seen earlier in this chapter are the foundation, where it all starts. But, when dealing with more than one, it starts getting complicated to handle them. You've seen that some commands can get quite long.
To operate with a container in a clustered operation, we will use docker-compose. This is Docker's own orchestration tool for defining multi-container operations. It gets defined by a YAML file with all the different tasks and services, each with enough context to build and run it.
It allows you to store the different services and parameters for each of them in this configuration file, called docker-compose.yaml by default. This allows you to coordinate them and generate a replicable cluster of services.