Project

General

Profile

DockerOnFermicloud

  1. Requirements: Tested on SL7 fermicloud nodes, this is all done as root
  2. Install Docker and CentOS yum repos, I use the script get_centos_repo
  3. yum install -y docker-ce docker-ce-cli containerd.io
  4. systemctl start docker
  5. docker run hello-world
  6. curl --location "https://github.com/docker/compose/releases/download/1.25.3/docker-compose-$(uname s)$(uname -m)" -o /usr/local/bin/docker-compose

The following steps are optional, they allow <user> to run docker commands. If they are not run, all docker operations must be run as root, but there are security implications to running them. This example shows letting 'dbox' run docker commands

  1. usermod -aG docker dbox
  2. newgrp docker

After this, test that the user can run docker commands