You are on page 1of 1

Download the packages you need:

RHEL6
curl -O -sSL https://get.docker.com/rpm/1.7.1/centos-6/RPMS/x86_64/docker-engine-
1.7.1-1.el6.x86_64.rpm
RHEL7
curl -O -sSL https://get.docker.com/rpm/1.7.1/centos-7/RPMS/x86_64/docker-engine-
1.7.1-1.el7.centos.x86_64.rpm

Use yum to install it on your system


yum localinstall --nogpgcheck docker-engine-1.7.1-1.el6.x86_64.rpm

Once its completed we can start Docker:


service docker start

ifconfig -a

docker images
docker search imagename (ubuntu)
docker pull imagename (ubuntu)

FROM centos:latest
MAINTAINER devops2018 <devopstraining2015@gmail.com>
RUN apt-get update