Install Docker on Centos 7

Install Docker on Centos 7

Install Docker:

yum install docker docker-registry 
systemctl enable docker.service
systemctl start docker.service
systemctl status docker.service

Install Docker Compose:

curl -L "https://github.com/docker/compose/releases/download/1.23.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
chmod +x /usr/local/bin/docker-compose

Or alternatively :

yum install -y python-pip
pip install docker-compose

Pull a docker image:

docker pull <imagename>

View Running Docker Containers:

docker ps

Please stay tuned for future posts on docker containers.