This article describes Docker installation prerequisites for Linux.
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. |
Follow the steps to install and configure the required software:
-
Download and install Docker for Linux. @(Info)()(Signup for Docker Hub is not required.)
-
Enable BuildKit by creating or updating
/etc/docker/daemon.json
:
{
...
"features" : {
...
"buildkit" : true
}
}
- Restart Docker:
sudo service docker start
-
Optional: Configure the
docker
group to manage Docker as a non-root user. See Manage Docker as a non-root user for configuration instructions. -
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
- Check Docker-compose version:
docker compose version
You've installed and configured the required software.
See Chossing an installation mode to choose an installation mode. If you've already selected an installation mode, follow one of the guides below: