Search results for:
Table of Contents
Docker is a very popular open-source container management system for cloud computing needs. There are some similarities and differences between Docker containers and the virtual machines we offer. The key difference is a container not installed with a guest operating system, such as Linux or Windows Server. Instead, it is packaged with the application or component of the application and any dependencies needed to run in its own self-contained runtime.
Docker is a great content management system. It allows you to run different application components in separate containers, such as your web server, database server, and file storage system. You can run multiple containers on one VPS or dedicated server. Containers are also highly portable, making it easy to move them between servers or deploy them to our cloud hosting environment as needed with little delay.
This guide will walk you through how to install Docker on a Debian-based system.
Step One – Ensure the apt package index is up to date.
sudo apt-get update
Step Two – Install Docker's required packages for Debian.
sudo apt-get install \ apt-transport-https \ ca-certificates \ curl \ gnupg2 \ software-properties-common
Step Three – Add the GPG key to the key-ring.
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo apt-key add -
Check Docker's documentation for the fingerprint.
Step Four – Check the key fingerprint to ensure it matches.
sudo apt-key fingerprint 0EBFCD88
Note: If the key fingerprint does not match, it is advised to check the official Docker documentation for the up-to-date fingerprint.
Step Five – Add the repository to the Operating System's listing.
sudo add-apt-repository \ "deb [arch=amd64] https://download.docker.com/linux/debian \ $(lsb_release -cs) \ stable"
Step Six – Ensure the apt package index is up to date. (This is important, especially after adding a repository.)
sudo apt-get update
Step Seven – Install the Docker engine.
sudo apt-get install docker-ce docker-ce-cli containerd.io
Step Eight– Ensure that Docker is running by downloading and running the hello-world container provided by Docker.
sudo docker run hello-world
The command above downloads an official Docker testing image and runs it in a new container. When it runs, it will just print a message and exit.
Written by Sean Gaddis / March 24, 2020