It’s easy to install Docker using your distro package management system for example in Centos, Redhat, Fedora using yum and, in Ubuntu, Debian using apt-get.
There is also a simple curl script available to help with installing Docker.
- Make sure curl is install, if not first install it.
- Now install Docker from installation script
$ curl -sSL https://get.docker.io/ubuntu/ | sudo sh
- To verify that everything has worked as expected:
$ sudo docker run -i -t ubuntu /bin/bash
This should download the Ubuntu image, and then start bash in a container.