__________     __ __     __  _______    ________
  / ____/ __ \   / // /    / / / /  _/ |  / / ____/
 / / __/ / / /  / // /_   / /_/ // / | | / / __/
/ /_/ / /_/ /  /__  __/  / __  // /  | |/ / /___
\____/\____/     /_/    /_/ /_/___/  |___/_____/

 --- A GOPHER-LIKE INTERFACE FOR HIVE BLOCKCHAIN ---

Installing Docker on CentOS/RedHat

BY: @rohancmr | CREATED: Jan. 15, 2018, 7:26 p.m. | VOTES: 2 | PAYOUT: $0.00 | [ VOTE ]

[IMAGE: https://steemitimages.com/DQmetjUxTZojws2YAgtquDXoCRMk2pLYu3rvxdTNBYqfXWx/docker-facebook.png]

Docker is an open source tool, designed to create, deploy and run applications easily and quickly by using containers. It packages, provisions and runs containers independent of the OS. It is developed in Go language.
Containers allows packaging an application with all the libraries, configuration files and dependencies as one single image. This helps the developers to be rest assured that the application will run on any other machine regardless of settings that the machine might have that could differ from the machine used for writing and testing the code.

Docker use kernel of the host system on which the applications are running. It shares the services of underlying operating system. This gives a significant performance boost and reduces the size of application.

Docker was created to work on Linux platforms. However, non-linux operating systems like Microsoft Windows and Apple OS X are also supported. Versions for Amazon Web Services (AWS) and Microsoft Azure is also available.

Features

In this tutorial, let us see how to install community version of Docker from its repository as well as from its package, on CentOS.

Requirements

Installation From Repository

yum install -y yum-utils device-mapper-persistent-data lvm2

[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1516037448/fq82hmfivnbaxlapojrm.gif]

yum-config-manager --add-repo https://download.docker.com/linux/centos/docker-ce.repo

[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1516037449/aq67bvik3gnm91e2onoi.gif]

yum install -y docker-ce

[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1516037523/jztqyqhngpi2uu34juq5.gif]

systemctl start docker

systemctl status docker

[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1516037540/pk36ofhnwbvlzdpqhvqv.gif]

docker run hello-world

[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1516037555/lkdvv8ln92clomk4qqsu.gif]

docker --version

[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1516037568/az07qfkheycxlpvc2xfd.gif]

Installation from Package

yum install -y wget

[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1516044023/oy3nrwag3sitt6wufpcp.gif]

wget https://download.docker.com/linux/centos/7/x86_64/stable/Packages/docker-ce-17.12.0.ce-1.el7.centos.x86_64.rpm

yum localinstall docker-ce-17.12.0.ce-1.el7.centos.x86_64.rpm

[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1516044056/ypo1rkhhgsljzoxf12gm.gif]

systemctl start docker

systemctl status docker

[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1516044074/w7zpkeqdjvmeze1dj8im.gif]

docker run hello-world

[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1516044092/amyquiyu1wxr3fovhtzv.gif]

docker --version

[IMAGE: https://res.cloudinary.com/hpiynhbhq/image/upload/v1516044108/lfu4luermacbjaudzij2.gif]

If you have any questions or comments, I'd would love to hear from you in comment section.

Posted on Utopian.io - Rewarding Open Source Contributors

TAGS: [ #utopian-io ] [ #docker ] [ #centos ] [ #containers ] [ #technology ]

Replies

@rohancmr | Jan. 15, 2018, 7:31 p.m. | Votes: 1 | [ VOTE ]

@originalworks

@gudivadamani7 | Jan. 16, 2018, 6:20 a.m. | Votes: 0 | [ VOTE ]

Nice post @rohancmr

@manishmike10 | Jan. 17, 2018, 9:09 a.m. | Votes: 0 | [ VOTE ]

Your contribution cannot be approved because it does not follow the Utopian Rules.
* Installations tutorials are very trivial and easy. They really won’t provide benefits in the platform.
You can contact us on Discord.
[utopian-moderator]

[ BACK TO TRENDING ] [ BACK TO MENU ]
CMD>