Docker installation (CentOS 7.2)

Source: Internet
Author: User

Using Docker for a long time, from CENTOS6 to 7, 6 is annoying the need to upgrade the kernel, Docker is not added to the System package by default.

This is the main record of the installation configuration steps in the 7.2 environment.

Installation is straightforward and the Yum install Docker.x86_64-y will complete the installation of Docker.

The configuration can be broadly divided into the following points:

1. Open Remote API

2. Specify a private warehouse address

3, SSL is more troublesome (test environment did not test)

The configuration files for the various services in CentOS 7 are quite different from those in 6 and are very unaccustomed at first.

Vim/etc/sysconfig/docker

Options= '--selinux-enabled-h tcp://0.0.0.0:6666-h unix:///var/run/docker.sock--insecure-registry 192.168.0.1:5000 ‘

Save exit, configuration complete.

#重新刷新systemctl

Systemctl Daemon-reload

#启动docker Daemon

Systemctl Start Docker.service

Service startup is not the same as the 6/etc/init.d/docker start. 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0007.gif "alt=" J_0007.gif "/>


In fact, in the installation process also encountered some problems, such as the CentOS 7 firewall has become FIREWALLD, not the previous iptables. So after the boot completes the remote API port has been unable to connect, must add 6666 port to can trust inside. However, if the security level is not very high, you can directly shut down the FIREWALLD service. 650) this.width=650; "src=" Http://img.baidu.com/hi/jx2/j_0013.gif "alt=" J_0013.gif "/>



This article is from the "various software users" blog, please be sure to keep this source http://yaoyf.blog.51cto.com/4223135/1768237

Docker installation (CentOS 7.2)

Related Article

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.