Bare Metal Cloud

How to install Docker on Bare Metal Server?

Steps to all Docker Bare Metal Server.

Ubuntu 14

  1.  Run the following command to install Docker. This will download and install the latest version and configure it to start during system boot.
     curl -SSL https://get.docker.com/ | ssh 
  2.  Run the hello-world container to test the docker command and confirm the installation was successful.
     docker run hello-world

CentOS 6 and Red Hat 6

  1.  Log into the machine via SSH as the root user. (Make sure you are logged into your VPN and connect to the machine's private IP as it is not recommended to allow SSH over a public IP.)
     ssh root@{ip_address}
  2.  It is recommended to run a full update on the system to ensure that it is fully patched.
     yum -y update
  3.  Download the Docker RPM using curl.
     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
  4.  Install the package with yum.
     yum -y localinstall --nogpgcheck docker-engine-1.7.1-1.el6.x86_64.rpm
  5.  Start the Docker daemon with this command:
     service docker start
  6.  Run the hello-world container to test the docker command and confirm the installation was successful.
     docker run hello-world
  7.  To set Docker to start during system boot, run the following command:
     chkconfig docker on