Docker Linux Installation: Difference between revisions
Jump to navigation
Jump to search
Line 45: | Line 45: | ||
systemctl is-enabled docker | systemctl is-enabled docker | ||
enabled | enabled | ||
</pre> | |||
=Reboot= | |||
<pre> | |||
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 | |||
</pre> | </pre> |
Revision as of 23:28, 25 April 2017
Internal
Prerequisites
A 3.8 kernel or later is required.
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/
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
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