Skip to content
This repository has been archived by the owner on Jun 7, 2023. It is now read-only.

Latest commit

 

History

History
28 lines (25 loc) · 888 Bytes

RHEL8_docker_install.md

File metadata and controls

28 lines (25 loc) · 888 Bytes

RHEL8 docker installation

These instructions are adapted from the article found here.

Instructions

First, we need to add and enable the docker-ce repo.

$ sudo dnf config-manager --add-repo=https://download.docker.com/linux/centos/docker-ce.repo

Then we want to go ahead and install docker. Unfortunately, the most recent version has at least one compatibility issue with RHEL8 so, we will use the --nobest flag to get the most recent compatible version.

$ sudo dnf install --nobest docker-ce

In order for DNS resolution to work inside docker containers we must also disable firewalld.

$ sudo systemctl disable firewalld

Finally, enable the docker daemon.

$ sudo systemctl enable --now docker

Ensure its working by running the following.

$ systemctl is-active docker
active