Docker Deployment Guide#

The following instructions are for deploying Docker.

Prerequisites#

This guide is written for a Red Hat Enterprise Linux 8 based operating system which is operating within a cluster of systems and the following are the prerequisites:

If deploying as a standalone service, adjust the hostname fields accordingly and omit steps involving IdM, NFS, and follow-on deployment guides.

Follow-on Deployments#

The following guides can be applied after the deployment of their associated nodes.

References#

These instructions were written for Docker CE 20.10.17

Instructions are based on the following documentation:
https://docs.docker.com/engine/install/centos/

Deployment Scripts#

Note

An example bash script of the instructions has been provided: deploy-docker.sh

Deployment Steps#

Note

Instructions assume execution using the root account.

  1. Connect the system to the NFS Server:

  1. Connect the system to the IdM Server:

  1. Install Dependencies:

dnf -y install yum-utils
  1. Remove conflicting packages:

dnf -y remove docker \
    docker-client \
    docker-client-latest \
    docker-common \
    docker-latest \
    docker-latest-logrotate \
    docker-logrotate \
    docker-engine \
    podman \
    cockpit-podman \
    runc
  1. Add the Docker Yum Repository:

# Docker GPG key fingerprint: 060A 61C5 1B55 8A7F 742B 77AA C52F EB6B 621E 9F35
yum-config-manager \
    --add-repo \
    https://download.docker.com/linux/centos/docker-ce.repo
  1. Install Docker CE:

dnf -y distro-sync
dnf -y install docker-ce docker-ce-cli containerd.io docker-compose-plugin
  1. Start the Docker service:

systemctl daemon-reload
systemctl enable --now docker
  1. Verify Docker is Operating:

docker run hello-world