You are signed in. Close

You are signed out. Close

Thank you. Your subscription has started. Close

Thank you. You will get an email when a new comic comes out. Close

We could not confirm your payment. If you paid, use the link "Sign in" at the bottom of the page. Close

Something went wrong on our side. Please try again in a moment. Close

Previous episode Linux cgroups: how Docker stops one container from taking all the server's memory

What happens when you put your app in a Docker container

Docker container vs virtual machine: what is really different underneath

Many people call a Docker container a small virtual machine. From outside, the two look the same. Inside, they are built in very different ways. You see the difference the moment you start one.

  1. 1 Put a container and a virtual machine side by side on one server. Each gives an app a space of its own, and from outside, they look the same.the servercontainerMy ownspace!virtual machineMy ownspace!

    Put a container and a virtual machine side by side on one server. Each gives an app a space of its own, and from outside, they look the same.

  2. 2 Yet fill two servers of the same size, one with each kind, and many more containers fit than virtual machines. What does a virtual machine carry that a container does not?the same servervirtual machinevirtual machinevirtual machinesthe same servercontainers

    Yet fill two servers of the same size, one with each kind, and many more containers fit than virtual machines. What does a virtual machine carry that a container does not?

The rest of this episode is for subscribers

Subscribe to read every premium episode. You can cancel when you want.

Paid yearly: $99 instead of $119.88

Next episode Docker build cache: what a new version of your app rebuilds, pushes and pulls

Share this comic

More comics