About Me

My photo
Kalyan Kumar Pasupuleti B-Tech(Information Technology). • RedHat Certified Engineer(RHCE) • Directory Services and Authentication Certificate of Expertise(LDAP) • Red Hat SELinux Policy Administration Certificate of Expertise(SELinux) • Network Services Security Certificate of Expertise (Network Services) • RedHat Certified Virtualization Administrator(RHCVA) • Red Hat Certified Security Specialist (RHCSS) Working as Cloud DevOps engineer

Tuesday, December 5, 2017

How to install Docker on CentOS 6

What is Docker?

Docker is a container-based software framework for automating deployment of applications. “Containers” are encapsulated, lightweight, and portable application modules.

How to install Docker on CentOs6?

Install the rpm
# rpm -iUvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Update your yum repo
# yum update -y
Now Install docker
# yum -y install docker-io
Now start docker
# service docker start
Now let’s configure Docker to start when the server reboots:
# chkconfig docker on
To work with docker container,Download the centos Docker image:
# docker pull centos
Run a Docker Container to setup a basic centos container with a bash shell, run below command:
# docker run -i -t centos /bin/bash
You’re now using a bash shell inside of a centos docker container.

No comments:

Post a Comment