Install Docker

This document will help you to install and configure Docker.

Docker is a platform that lets you design, test, and deploy applications quickly. Docker integrates software into standardized units called containers, which bring together all the elements necessary for their operation, including libraries, system tools, code and runtime environment.

It will help you to deploy your masternodes more simply and quickly using BITGEN code repositories.

Sommaire du tutoriel

Prerequisite

Before starting this tutorial, please carefully read the following prerequisites :

1. Preparing the package manager

Connect in SSH to the server.

Then let’s start by updating our server :

    > sudo apt-get -y update && sudo apt-get -y upgrade && sudo apt-get autoremove

Then let’s configure the package manager to fetch Docker properly :

    > sudo apt-get -y install ca-certificates curl gnupg lsb-release
    > sudo mkdir -p /etc/apt/keyrings && curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg && sudo chmod a+r /etc/apt/keyrings/docker.gpg
    > echo "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/debian $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

2. Docker Engine installation

    > sudo apt-get -y update && sudo apt-get -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin

To verify the installation :

    > docker --version
    Docker version 20.10.17, build 100c701