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
  4. systemctl start docker
  5. docker run hello-world
  6. curl --location "$(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