Packaging a service with Docker Compose

Chapter 7Using Third-Party Services, introduced Docker, an isolation framework based on containers. In that chapter, a single container was started directly with the Docker command line. This method is fine for starting a single container, but has several drawbacks:

  • All parameters must be provided in the command line, which can be quite long
  • If several containers must be started, then multiple commands must be used

One solution to these issues is to use shell scripts that contain all these commands with their parameters. The Docker framework provides a tool dedicated to this task, more generic than custom scripts: Docker Compose.

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.129.22.164