1. Learn
  2. /
  3. Courses
  4. /
  5. Intermediate Docker

Connected

Exercise

Managing an application with Docker Compose

You've recently studied the basics of Docker Compose and want to make sure you understand how everything works together. You've downloaded an appropriate compose.yaml file and have it ready in your local directory. You'd like to make sure you understand how to interact with a Docker Compose application.

Instructions 1/3

undefined XP
  • 1
    • Use the proper docker command to start an application using the compose.yaml file. Make sure to use the -d flag to detach from the output (remember, if you don't use the -d flag, the application will not return to a command prompt. If you accidentally do this, press CTRL+C to exit and try again.)
  • 2
    • Use a docker compose sub-command to list the running applications and their state.
  • 3
    • Finally, stop the application with the correct docker command.