3 Hanging some flesh on the task skeleton

This chapter covers

  • Reviewing how to start and stop Docker containers via the command line
  • Introducing the Docker API calls for starting and stopping containers
  • Implementing the Task concept to start and stop a container

Think about cooking your favorite meal. Let’s say you like making homemade pizza. To end up pulling a delicious, hot pizza out of your oven, you have to perform a number of tasks. If you like onions, green peppers, or any other veggies on your pizza, you have to cut them up. You must knead the dough and spread it on a baking sheet. Next, you spread tomato sauce across the dough and sprinkle cheese over it. Finally, on top of the cheese, you layer your veggies and other ingredients. ...

Get Build an Orchestrator in Go (From Scratch) now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.