Docker Engine 29.8.1 (2026-09-15) 기준.[1] 패키지 이름은 docker-ce · docker-ce-cli · containerd.io · docker-buildx-plugin · docker-compose-plugin 다섯 개다.
# RHEL / Rocky / CentOS Stream
sudo dnf remove docker docker-client docker-client-latest docker-common docker-latest docker-latest-logrotate docker-logrotate docker-engine podman runc
# Ubuntu
sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-compose-v2 docker-doc docker-buildx podman-docker containerd runc | cut -f1)
# RHEL 8 · 9 · 10
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://download.docker.com/linux/rhel/docker-ce.repo
# CentOS Stream 9 · 10, Rocky · Alma (centos 저장소를 그대로 쓴다)
sudo dnf -y install dnf-plugins-core
sudo dnf config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
# Ubuntu 22.04 · 24.04 · 26.04
sudo apt update
sudo apt install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
sudo tee /etc/apt/sources.list.d/docker.sources <<EOF
Types: deb
URIs: https://download.docker.com/linux/ubuntu
Suites: $(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}")
Components: stable
Architectures: $(dpkg --print-architecture)
Signed-By: /etc/apt/keyrings/docker.asc
EOF
sudo apt update
# RHEL / Rocky / CentOS Stream
sudo dnf install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
# Ubuntu
sudo apt install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
sudo systemctl enable --now docker
sudo docker run hello-world
docker version
일반 계정으로 쓰려면 docker 그룹에 넣고 다시 로그인한다.[2]
sudo usermod -aG docker $USER
# RHEL / Rocky
dnf list docker-ce --showduplicates | sort -r
sudo dnf install docker-ce-<VERSION_STRING> docker-ce-cli-<VERSION_STRING> containerd.io docker-buildx-plugin docker-compose-plugin
# Ubuntu
apt-cache madison docker-ce | awk '{ print $3 }'
sudo apt install docker-ce=<VERSION_STRING> docker-ce-cli=<VERSION_STRING> containerd.io docker-buildx-plugin docker-compose-plugin
curl -fsSL https://get.docker.com -o get-docker.sh && sudo sh get-docker.sh
위 버전과 저장소는 오래된 것이라 저장소가 존재하지 않을 수 있다.
sudo yum install -y yum-utils
sudo yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo
sudo yum install docker-ce docker-ce-cli containerd.io -y
Docker Engine release notes · Install on RHEL · CentOS · Ubuntu. 2026-09-17 확인. https://docs.docker.com/engine/release-notes/ · https://docs.docker.com/engine/install/rhel/ · https://docs.docker.com/engine/install/centos/ · https://docs.docker.com/engine/install/ubuntu/ ↩︎
Linux post-installation steps. https://docs.docker.com/engine/install/linux-postinstall/ ↩︎