Centos+bond+bridge+docker (SSH container) Fixed IP Implementation test Environment (III)

Source: Internet
Author: User

Docker installation

Before installing, make sure that the VG has the remaining space left for Docker to do Thinpooldev, as if it were about 60% of the space left.

# yum-y Install Docker bridge-utils

Shut down the firewall and SELinux before you start

#systemctl Disable FIREWALLD

#systemctl Stop Firewalld

#setenforce 0

#sed-i ' s/selinux=enforcing/selinux=disabled/g '/etc/selinux/config

Note The SELinux configuration file locations for CENTOS6 and CENTOS7 are not the same.

Modify the Docker configuration file

Cat/etc/sysconfig/docker-network

#/etc/sysconfig/docker-network

docker_network_options="-B bridge0"

Docker detects that the VG has the remaining space to do the automatic creation of thinpooldev settings.

# Systemctl Start Docker

Cat/etc/sysconfig/docker-storage

Docker_storage_options=--storage-driver devicemapper--storage-opt dm.fs=xfs--storage-opt dm.thinpooldev=/dev/ Mapper/centos-docker--pool--storage-opt dm.use_deferred_removal=true--storage-opt Dm.basesize=20G

I added the red part myself. The default images is 10G, I increase to 20G, modify the completion remember to restart Docker.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/72/56/wKioL1XhZLDycU5GAAPQA-LkbhE686.jpg "title=" Docker.png "alt=" Wkiol1xhzldycu5gaapqa-lkbhe686.jpg "/>

The Docker installation is now complete.

Bo Master qq:568273240

Blog: http://568273240.blog.51cto.com/

This article is from "A Dream Millennium" blog, please be sure to keep this source http://568273240.blog.51cto.com/2921150/1689551

Centos+bond+bridge+docker (SSH container) Fixed IP Implementation test Environment (III)

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.