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
Update your yum repo
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 -yNow Install docker
# yum -y install docker-ioNow start docker
# service docker startNow let’s configure Docker to start when the server reboots:
# chkconfig docker onTo work with docker container,Download the centos Docker image:
# docker pull centosRun a Docker Container to setup a basic centos container with a bash shell, run below command:
# docker run -i -t centos /bin/bashYou’re now using a bash shell inside of a centos docker container.