Installation of Docker1.8 under CENTOS7

Source: Internet
Author: User

1. Create the Yum library for Docker

[[Email protected]~]# cd/etc/yum.repos.d/

[Email protected]]# vim Docker.repo

[Dockerrepo]

Name=dockerrepository

Baseurl=https://yum.dockerproject.org/repo/main/centos/7

Enabled=1

Gpgcheck=1

Gpgkey=https://yum.dockerproject.org/gpg

(2) Installing Docker

[Email protected]~]# yum Install Docker-engine

(3) Close the FIREWALLD service under CENTOS7 and install the Iptables-ser

[Email protected]~]# systemctl Disable FIREWALLD

RM '/etc/systemd/system/dbus-org.fedoraproject.firewalld1.service '

RM '/etc/systemd/system/basic.target.wants/firewalld.service '

[Email protected]~]# yum-y Install iptables-services

(4) Open iptables Service

[[Email protected]~]# systemctl Enable iptables

Ln-s '/usr/lib/systemd/system/iptables.service '/etc/systemd/system/basic.target.wants/iptables.service '

[[Email protected]~]# systemctl start iptables

(5) Start the Docker service and set the boot to start automatically

[[Email protected]~]# systemctl start Docker.service

[[Email protected]~]# systemctl Enable Docker.service

Ln-s '/usr/lib/systemd/system/docker.service '/etc/systemd/system/multi-user.target.wants/docker.service '

(6) Verify that Docker is installed successfully

[[Email protected]~]# docker Info

containers:0

images:0

Storagedriver:devicemapper

Pool Name:docker-253:1-50332704-pool

Pool blocksize:65.54 KB

backing FILESYSTEM:XFS

Data File:/dev/loop0

Metadata File:/dev/loop1

Data Space used:1.821 GB

Data Space total:107.4 GB

Data Space available:7.413 GB

Metadata Space used:1.479 MB

Metadata Space total:2.147 GB

Metadata Space available:2.146 GB

Udev Sync Supported:true

Deferred removal Enabled:false

Data Loop File:/var/lib/docker/devicemapper/devicemapper/data

Metadata Loop File:/var/lib/docker/devicemapper/devicemapper/metadata

Library Version:1.02.93-rhel7 (2015-01-28)

executiondriver:native-0.2

Loggingdriver:json-file

Kernelversion:3.10.0-229.7.2.el7.x86_64

Operatingsystem:centos Linux 7 (Core)

Cpus:1

totalmemory:1.791 GiB

Name:localhost.localdomain

Id:2eeq:3vmi:tiuy:nuhz:nzmq:vod7:yw3k:kzg3:iqzt:xr4q:g4xj:tcvm

(8) View the installed Docker version

[[Email protected]~]# docker Version]

Client:

version:1.8.2

API version:1.20

Go version:go1.4.2

Git commit:0a8c2e3

Built:thu Sep 19:08:45 UTC 2015

Os/arch:linux/amd64

Server:

version:1.8.2

API version:1.20

Go version:go1.4.2

Git commit:0a8c2e3

Built:thu Sep 19:08:45 UTC 2015

Os/arch:linux/amd64

This article is from the "Cloud Life" blog, make sure to keep this source http://ovcer.blog.51cto.com/1145188/1694369

Installation of Docker1.8 under CENTOS7

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.