Skip to content

Docker install on Amazon Linux 2

Aleksandr Sidoruk edited this page Aug 21, 2025 · 1 revision

Install docker 20 on an outdated Amazon Linux 2

CP_CAP_DIND_DISTR_PREFIX="https://cloud-pipeline-oss-builds-eu-west-1.s3.eu-west-1.amazonaws.com/tools/docker/distr"
CP_CAP_DIND_VERSION="20.10.24"
CP_CAP_DIND_CHANNEL="stable"
CP_CAP_DIND_ARCH="x86_64"

wget -O docker.tgz "${CP_CAP_DIND_DISTR_PREFIX}/linux/static/${CP_CAP_DIND_CHANNEL}/${CP_CAP_DIND_ARCH}/docker-${CP_CAP_DIND_VERSION}.tgz"
tar --extract --file docker.tgz --strip-components 1 --directory /usr/local/bin/

nohup dockerd &> /var/log/docker.log &
Clone this wiki locally