Skip to content

Latest commit

 

History

History
59 lines (47 loc) · 2.48 KB

02-installing-docker-prerequisites-on-linux.md

File metadata and controls

59 lines (47 loc) · 2.48 KB

Installing Docker prerequisites on Linux

This article describes Docker installation prerequisites for Linux.

Minimum system requirements

Review the minimum system requirements in the table:

System Requirement Additional Details
vCPU: 2 This is a minimum requirement. The value can be higher than 2. A lower value is not sufficient for running the application.
RAM: 4GB This is a minimum requirement. The value can be higher than 4GB. A lower value is not sufficient for installation purposes.
Swap: 2GB This is a minimum requirement. The value can be higher than 2GB. A lower value is not sufficient for installation purposes.

Installing and configuring required software

Follow the steps to install and configure the required software:

  1. Download and install Docker for Linux. @(Info)()(Signup for Docker Hub is not required.)

  2. Enable BuildKit by creating or updating /etc/docker/daemon.json:

{
  ...
  "features" : {
    ...
    "buildkit" : true
  }
}
  1. Restart Docker:
sudo service docker start
  1. Optional: Configure the docker group to manage Docker as a non-root user. See Manage Docker as a non-root user for configuration instructions.

  2. Install Docker-compose:

DOCKER_CONFIG=${DOCKER_CONFIG:-$HOME/.docker}
mkdir -p $DOCKER_CONFIG/cli-plugins
curl -SL https://github.com/docker/compose/releases/download/v2.10.2/docker-compose-linux-x86_64 -o $DOCKER_CONFIG/cli-plugins/docker-compose
chmod +x $DOCKER_CONFIG/cli-plugins/docker-compose
  1. Check Docker-compose version:
docker compose version

You've installed and configured the required software.

Next steps

See Chossing an installation mode to choose an installation mode. If you've already selected an installation mode, follow one of the guides below: