Docker CentOS 7

by phx
8 deployments · 1 still active · last rev. 1 year ago

Installs docker using yum from virt7-testing repository

Compatible with: CentOS 7
						#!/bin/bash

cat <<EOT > /etc/yum.repos.d/virt7-testing.repo
[virt7-testing]
name=virt7-testing
baseurl=http://cbs.centos.org/repos/virt7-testing/x86_64/os/
enabled=1
gpgcheck=0
exclude=kernel
EOT

yum -y update
yum -y install docker
systemctl enable docker
systemctl start docker