Introduction
A lightweight, stand-alone package that contains everything needed to run a piece of software, including the code, runtime, system tools, system libraries, and settings.
Containerization
Docker

Comparing Virtual Machines and Containers

Virtual machines
Containers
Getting Docker set up and running
Choosing which Docker product based on requirements
Installing Docker
OS requirements🔗
To install Docker Engine, you need the 64-bit version of one of these Ubuntu versions:
Remove old versions
If these are installed, uninstall them:
Installation methods
You can install Docker Engine in different ways, depending on your needs:
Install using the repository
Set up the repository
Update the apt package index and install packages to allow apt to use a repository over HTTPS:
apt package index and install packages to allow apt to use a repository over HTTPS:Add Docker’s official GPG key:
Install docker engine
Update the apt package index, and install the latest version of Docker Engine and containerd, or go to the next step to install a specific version:
apt package index, and install the latest version of Docker Engine and containerd, or go to the next step to install a specific version:If you would like to use Docker as a non-root user, you should now consider adding your user to the “docker” group with something like:
Hello World in Docker
Now that we have Docker ready to go on our machines, it's time for us to run our first container. Open up terminal and run following command:
If everything goes fine you should see some output like the following:
Docker Engine
Docker Engine is a client-server application with these major components:

Docker Architecture
It consists of four main parts:

Last updated