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)