Prerequisites
- CentOS version must be > 32 bit install
- Ubuntu kernel version must be >= 2.5
- Check with command : $ uname -r
- Update the kernel : sudo yum update
Install
- Download docker in current dir using curl
$ curl -O -sSL https://get.docker.com/rpm/1.7.0/centos-6/RPMS/x86_64/docker-1.7.0-1.el6.x86_64.rpm - Run command to install docker :
$ sudo yum localinstall --nogpgcheck docker-engine-1.7.0-1.el6.x86_64.rpm
- Run command to check current centos image : # docker pull centos
It will verify if the image is latest one.
- Run command : # docker run -t -i centos /bin/bash
It provides root container ID, which is the Docker deamon.
You can launch any command on the deamon :
[root@76786880877 /]# ls
No comments:
Post a Comment
Note: only a member of this blog may post a comment.