CentOS 7 - Install Docker

Below is a script to run as a sudo user to install Docker on CentOS 7. Even though CentOS 7 runs kernel 3.10, it manages to scrape by with supporting docker. I have a feeling that even after Docker increases its minimum kernel requirements, CentOS will still be supported on CentOS through kernel patches.

Installation Script

#!/bin/bash
sudo yum update -y

curl -fsSL https://get.docker.com/ | sh

# start the docker service immediately after install
sudo service docker start

# add self to docker group
sudo usermod -a -G docker $USER

# start docker on boot
sudo chkconfig docker on

References

Author

Programster

Stuart is a software developer with a passion for Linux and open source projects.

comments powered by Disqus