Docker Linux Installation: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 13: | Line 13: | ||
=RedHat/Centos= | =RedHat/Centos= | ||
=Setting a yum Repository= | ==Setting a yum Repository== | ||
Create a <tt>docker.repo</tt> in <tt>/etc/yum.repos.d</tt>: | Create a <tt>docker.repo</tt> in <tt>/etc/yum.repos.d</tt>: | ||
Line 33: | Line 33: | ||
{{Internal|Using yum with registry.access.redhat.com Images#Overview|Using yum with registry.access.redhat.com Images}} | {{Internal|Using yum with registry.access.redhat.com Images#Overview|Using yum with registry.access.redhat.com Images}} | ||
=Remove Older Releases= | ==Remove Older Releases== | ||
Remove older Docker releases, | Remove older Docker releases, | ||
yum list installed | grep docker | |||
yum erase ... | |||
yum erase ... | |||
=Install= | ==Install== | ||
yum install docker-engine | |||
yum install docker-engine | |||
The yum installation procedure enables the docker server to start at boot: | The yum installation procedure enables the docker server to start at boot: | ||
Line 59: | Line 54: | ||
systemctl enable docker | systemctl enable docker | ||
=Reboot= | ==Reboot== | ||
<pre> | <pre> | ||
Line 83: | Line 78: | ||
</pre> | </pre> | ||
=Installation Verification= | ==Installation Verification== | ||
{{Internal|Docker Installation Verification|Docker Installation Verification}} | {{Internal|Docker Installation Verification|Docker Installation Verification}} | ||
=Docker Installation for OpenShift= | ==Docker Installation for OpenShift== | ||
* [[OpenShift_3.6_Generic_Guest_Template#Install_Docker|Docker Installation for OpenShift 3.6]] | * [[OpenShift_3.6_Generic_Guest_Template#Install_Docker|Docker Installation for OpenShift 3.6]] | ||
* [[OpenShift_3.5_Installation#Docker_Installation|Docker Installation for OpenShift 3.5]] | * [[OpenShift_3.5_Installation#Docker_Installation|Docker Installation for OpenShift 3.5]] |
Revision as of 01:52, 19 April 2018
Internal
Overview
Verified with Centos 7.
Prerequisites
A 3.8 kernel or later is required.
RedHat/Centos
Setting a yum Repository
Create a docker.repo in /etc/yum.repos.d:
[dockerrepo] name=Docker Repository baseurl=https://yum.dockerproject.org/repo/main/centos/7 enabled=1 gpgcheck=1 gpgkey=https://yum.dockerproject.org/gpg
Alternative URL for Centos 6: https://yum.dockerproject.org/repo/main/centos/6 Oracle Linux: https://yum.dockerproject.org/repo/main/oraclelinux/6/
This is an example of how to use an "entitled" RH repository:
Remove Older Releases
Remove older Docker releases,
yum list installed | grep docker
yum erase ...
Install
yum install docker-engine
The yum installation procedure enables the docker server to start at boot:
systemctl is-enabled docker enabled
If not, enable it:
systemctl enable docker
Reboot
docker version Client: Version: 17.03.1-ce API version: 1.27 Go version: go1.7.5 Git commit: c6d412e Built: Fri Mar 24 00:36:45 2017 OS/Arch: linux/amd64 Server: Version: 17.03.1-ce API version: 1.27 (minimum version 1.12) Go version: go1.7.5 Git commit: c6d412e Built: Fri Mar 24 00:36:45 2017 OS/Arch: linux/amd64 Experimental: false