Docker - CentOS 7

by usatestprep_ronnie
5 deployments · 3 still active · last rev. 9 months ago

Docker (latest version) running on CentOS 7

Based off of published instructions here:

https://docs.docker.com/engine/installation/linux/centos/

Compatible with: CentOS 7
						#!/bin/bash

# Prep packages from base install
yum -y erase docker docker-common container-selinux docker-selinux
yum -y update

# Install tools needed for docker, docker repo, and later version of docker
yum -y install yum-utils
yum-config-manager --add-repo https://docs.docker.com/engine/installation/linux/repo_files/centos/docker.repo
yum makecache fast
yum -y install docker-engine

# Enable and start the service
systemctl enable docker
systemctl start docker