Stephen Grider

Docker containers. If you’ve attended any tech conferences or read industry publications in the last few years, you’ll know that these terms—‘docker’ and ‘container’—have seen growing buzz. While the words are often used interchangeably in the software engineering and IT space, they refer to two different things: Docker is an open-source platform used for the creation of software packages called containers

Docker use has surged in recent years. For the first time in its history, the 2019 annual Stack Overflow Developer Survey, included questions about Docker adoption and respondents named it the third most commonly used platform after Linux and Windows. Though the technology of containers is seeing growth, I find that the technology behind Docker is often misunderstood. In this blog, I will explain some of the common misconceptions about Docker containers, its benefits, and how Docker can be used with Kubernetes. You can also find out more on my course on Udemy Docker and Kubernetes: The Complete Guide.

Docker and Kubernetes: The Complete Guide

Last Updated June 2020

  • 312 lectures
  • All Levels
4.6 (27,392)

Build, test, and deploy Docker applications with Kubernetes while learning production-style development workflows | By Stephen Grider

Explore Course

What is Docker used for?

Docker has become especially useful in the DevOps process as a way to automate some of the manual tasks of a DevOps Engineer. The DevOps role typically requires troubleshooting complex problems such as provisioning servers and configuring them to run software associated with your company’s tech stack. A DevOps Engineer may write one unique configuration file for use on a single server, but with Docker the engineer could write one configuration and use it across many instances, avoiding cumbersome and manual configuration. 

An example of Docker’s use in industry is music-streaming service, Spotify, which runs a microservices architecture with nearly 300 servers for every engineer on staff. This large number of microservices caused a strain on the team’s deployment pipeline. By implementing Docker, the teams could move a single container across their CI/CD pipeline. Developers could guarantee that the container that passed the build and test process was the same one used in production. 

What are Docker containers?

Containers package everything required for the building and shipping of an application via something called “a container image.” This container image exists as the blueprint to execute the container and all of its determined operating systems, language libraries, environment variables, and more. Multiple containers can be created using the same container image. The container itself is a live computing environment while the image is a set of instructions for setting up the computing environment. You might think of the container image as a cake recipe to the container’s cake. 

Docker is the sandbox where developers can configure the very specific dependencies, operating systems, and libraries needed in a container for their applications and projects. The use of containers allows these configured packages to be used across computing devices. From your laptop to your coworker’s laptop to a cloud server, one container ensures they’re all running on the same operating system and programs. 

4 benefits of Docker for developers and IT

Across the board, the use of Docker and containers drive efficiencies for both development and IT teams. When developing applications on their local machines, developers need to ensure they have very specific versions of the software and tools required for their projects and Docker helps with this. Specifically, those benefits include:

  1. Onboard teams fast—For engineers starting at a new company, it’s not unusual to spend your first few days on the job working with IT to upload new environments to your system. Docker helps get new team members up to speed quickly by easily replicating a full environment. Teammates can run a Docker configuration file on their system and within the same day start contributing to company projects. 
  2. Straightforward, consistent collaboration—In addition to fast onboarding for new employees, Docker simplifies how engineers collaborate on projects without worrying about a common setup. Everything needed to work with a fellow developer or a DevOps engineer in a different office can be found in the container. 
  3. Cost-efficient—In pre-Docker and container times, you’d typically deploy to a virtual machine (VM); one computer running one piece of software. Even if you wanted to run software that would never be executed, you’d still have to utilize space on a VM. However, with Docker, more VMs fit on a single instance. A team can run multiple software containers on a single VM, including those that will never be executed within the final product, which is a more budget-friendly solution for development teams to scale. 
  4. Secure, fast deployment—Security threats are everywhere and one solution to mitigating the possible effects of running untrusted code from a third-party is to create a container and run code there. Say there was something harmful in that untrusted code, once I find it, I can just delete the container without having compromised my entire system. Because a container is an isolated environment, it won’t affect the rest of the computer since it doesn’t get persisted to the computer outside of the container. 

Want your development team to building containers with Docker? Request a Udemy for Business Demo to learn more about our development courses. 

Empower your team. Lead your industry.

Want your IT and engineering teams to build containers with Docker? Learn more about our online technical courses on Udemy for Business.

Request a demo

How Kubernetes is used with Docker 

A term often used in conjunction with Docker is Kubernetes, which is an open-source platform originally developed by Google for the management and orchestration of containers. The most widely used implementations of Kubernetes are Google Kubernetes Engine, running within Google’s Cloud Engine, and Red Hat’s OpenShift, popular for hybrid cloud uses.

Why use Kubernetes with Docker containers? 

Docker ≠ Virtual Machine

Finally, Docker shouldn’t be used as the single answer to every platform question. Many developers know that Docker is something useful for deployment and managing servers, but it’s not a one-stop-shop for all cases. Docker should be used for specific problems. Likewise, some of the benefits of Docker for development teams won’t always translate to the project at hand or your company’s specific needs. Like all technical solutions, it’s one of many to consider.

Most notable of misconceptions is the idea that a Docker container is a 1:1 alternative to a Virtual Machine (VM.) It’s not. The team at Docker does a good job of explaining the difference between the two by noting that Docker is not a virtualization technology, it’s an application delivery technology. 

Ready to utilize Docker’s many efficiencies across your development, IT, and DevOps teams? Join over 70,000 students in my course Docker and Kubernetes: The Complete Guide and learn Docker fundamentals from the ground up—no experience required!

Modern React with Redux [2020 Update]
Stephen Grider
4.6 (56,874)
Bestseller
Advanced React and Redux
Stephen Grider
4.6 (9,074)
Meteor and React for Realtime Apps
Stephen Grider
4.5 (1,875)
Bestseller
The Complete Elixir and Phoenix Bootcamp
Stephen Grider
4.5 (4,879)
Bestseller
The Complete React Native + Hooks Course [2020 Edition]
Stephen Grider
4.6 (31,814)
Bestseller
React Native: Advanced Concepts
Stephen Grider
4.2 (4,357)

Courses by Stephen Grider

Page Last Updated: February 2020