Sunday, April 2, 2017

How to install Docker on RedHat Linux OS?

Let us how to install Docker on RedHat Linux 7.

Prerequisites:
Redhat 7 Linux

1. Login into your instance, make sure curl is installed.
$ curl --version
2. Install docker using curl command which will download and execute a native docker installation script:
$  curl -sSL https://get.docker.com/ | sh
3. To enable docker to start on your Redhat 7 Linux after reboot run the following command:
$ systemctl enable docker
4. To start docker daemon run:
$  systemctl start docker


To test if docker is installed or not..
$docker run hello-world

No comments:

Post a Comment