Now that we have all the components of our Chef environment set up properly, we can start writing Chef recipes to actually describe what configuration our Docker hosts should have. In addition, we will leapfrog our productivity by taking advantage of existing Chef cookbooks in the Chef ecosystem. As Docker is a popular infrastructure stack to deploy, we can use cookbooks in the wild that allow us to configure our Docker hosts. Chef cookbooks provided by the community can be found in the Chef Supermarket. We can go to http://supermarket.chef.io to discover other cookbooks that we can readily use.
In this section, we will learn how to write Chef recipes and apply them to our node.