Skip to Main Content

DevOps, CI/CD and Automation

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Installation of Docker on Oracle Linux 6

3285766May 31 2017 — edited Aug 2 2017

##--Get root access--##

##--Export proxy variables--##

export http_proxy=”http://www-xyz.com:80”

export https_proxy=”https://www-xyz.com:80”

##--Create a backup of public-yum-ol6.repo--##

cd /etc/yum.repos.d

mv public-yum-ol6.repo public-yum-ol6.repo_old

##--Get the latest version--##

wget http://public-yum.oracle.com/public-yum-ol6.repo

##--Edit public-yum-ol6.repo--##

vi /etc/yum.repos.d/public-yum-ol6.repo

##--Change the enabled flag for the following entries:--##

1.png

##--Save the file--##

##--Update--##

yum update

##--Reboot--##

##--Edit public-yum-ol6.repo--##

vi /etc/yum.repos.d/public-yum-ol6.repo

##--Change the enabled flag for the following entry:--##

2.png

##--Save the file--##

##--Install docker-engine--##

yum install docker-engine

##--Check docker version--##

3.png

##--Edit this file for proxy settings--##

vi /etc/sysconfig/docker

##--Add these entries--##

export HTTP_PROXY=”http://www-xyz.com:80”

export HTTPS_PROXY=”https://www-xyz.com:80”

##--Start docker--##

5.png

##--Run this command to pull and run your hello-world program from docker repository.--##

docker run hello-world

6.png

##--Stop docker--##

7.png

Comments
Post Details
Added on May 31 2017
0 comments
5,542 views