Howto install docker rhel8
Jump to navigation
Jump to search
install repo:
dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo
install docker latest version:
dnf install docker-ce --nobest -y
start and enable docker service:
systemctl start docker systemctl enable docker
verify installed docker version:
docker --version
install docker-compose:
curl -L "https://github.com/docker/compose/releases/download/1.27.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
fix permissions:
chmod +x /usr/local/bin/docker-compose
verify docker-compose version:
docker-compose --version