Book Image

Docker for Developers

By : Richard Bullington-McGuire, Andrew K. Dennis, Michael Schwartz
2 (1)
Book Image

Docker for Developers

2 (1)
By: Richard Bullington-McGuire, Andrew K. Dennis, Michael Schwartz

Overview of this book

Docker is the de facto standard for containerizing apps, and with an increasing number of software projects migrating to containers, it is crucial for engineers and DevOps teams to understand how to build, deploy, and secure Docker environments effectively. Docker for Developers will help you understand Docker containers from scratch while taking you through best practices and showing you how to address security concerns. Starting with an introduction to Docker, you’ll learn how to use containers and VirtualBox for development. You’ll explore how containers work and develop projects within them after you’ve explored different ways to deploy and run containers. The book will also show you how to use Docker containers in production in both single-host set-ups and in clusters and deploy them using Jenkins, Kubernetes, and Spinnaker. As you advance, you’ll get to grips with monitoring, securing, and scaling Docker using tools such as Prometheus and Grafana. Later, you’ll be able to deploy Docker containers to a variety of environments, including the cloud-native Amazon Elastic Kubernetes Service (Amazon EKS), before finally delving into Docker security concepts and best practices. By the end of the Docker book, you’ll be able to not only work in a container-driven environment confidently but also use Docker for both new and existing projects.
Table of Contents (21 chapters)
1
Section 1: An Introduction to Docker – Containers and Local Development
6
Section 2: Running Docker in Production
14
Section 3: Docker Security – Securing Your Containers

Summary

In this chapter, we learned all about Kubernetes and options for hosting it in the cloud. We walked through some of the cloud-hosting platforms on the market and then completed a quick overview of the key components of Kubernetes.

Following this, we developed a process for deploying our Docker containers to AWS EKS, using AWS ECR as a Docker container registry. Here, you also got the chance to experiment with Amazon's CloudFormation technology, a platform for developing infrastructure as code.  

Next, we studied Helm and Helm Charts and built on the ShipIt Clicker application. This was stood up in AWS with resource limits.

You should now feel comfortable with repeating this process for another project if you wish!

Now that our basic Kubernetes setup is ready to go, what other concerns do we need to address before we can use it for a scalable production project? We have seen how we can use Jenkins for continuous deployment, but it would be tedious...