Containerization with Docker by Example
Have you been struggling taking your application from development to production because your environments don’t match? Do you want your applications to be self-contained, minimizing the software diversity needed on every server? Are you tired of the overhead necessary when configuring application servers?
Look no further because Docker has you covered!
The Docker runtime allows you to deploy applications as containers while having the same experience regardless of the host computer’s configuration. Each container receives its own configuration which is self-contained and not dependent on the host, making it easy to take these “micro-services” anywhere at any time, without the headache of configuring servers.
Take the example of a backend API and a frontend application. Typically, these would be two services. With Docker, these two applications would be containerized and deployed with ease using the same steps in development as production.
In this course you’ll learn how to use Docker through actual examples. You’ll see how to create your own custom images, deploy those images as containers on any machine, and have them communicate to each other or the host machine. By the end of the course you’ll be familiar enough with Docker to apply your knowledge towards your own projects.
An introduction of the author and what the goals of the course are.
Getting Familiar with Docker and Containers
Learn how to download public Docker images listed on Docker Hub to be later used as containers.
Learn how to deploy previously downloaded Docker images as containers and how to control them in their attached or detached state.
Learn how to connect to previously detached containers and perform other useful tasks with the command line.
Learn how Dockerfile configurations are created by reviewing public files listed on Docker Hub.
Learn how to build your own custom Docker image to be deployed time and time again as a container. The examples used in this lecture are Node.js applications and they can be downloaded from the downloads area.
Learn how to maintain the container state by mapping volumes between the host and containers. The example used in this lecture is done with Node.js and it can be downloaded from the downloads area.
Learn how to use Docker Compose to deploy multi-container Docker applications. This is useful for projects that might consist of multiple applications that need to work together. The Compose file can be downloaded from the downloads area.
Learn how to create a private Docker image registry store your custom images outside of Docker Hub.
Clean your computer of all your old and unused Docker images, containers, networks, and volumes. Things can get messy and we're going to see how to keep things clean.
Get a refresher on everything we covered in the course and learn how you can download all of the projects that were used.