docker存储引擎----存储引擎的修改

找一台centos7.2安装docker

# yum install -y vim wget telnet lrzsz tree yum-utils device-mapper-persistent lvm2 bash-comple*

# source /usr/share/bash-completion/bash_completion

# rm -rf /etc/yum.repos.d/*

# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo

# wget -O /etc/yum.repos.d/epel.repo http://mirrors.aliyun.com/repo/epel-7.repo

# wget -O /etc/yum.repos.d/docker-ce.repo http://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo

# yum makecache fast

# wget https://mirrors.aliyun.com/docker-ce/linux/centos/7/x86_64/stable/Packages/docker-ce-18.09.9-3.el7.x86_64.rpm

# yum localinstall docker-ce-*

# systemctl start docker

查看存储引擎

[root@localhost ~]# docker info

...

 Server Version: 18.09.9
 Storage Driver: devicemapper
  Pool Name: docker-8:3-33951780-pool
  Pool Blocksize: 65.54kB
  Base Device Size: 10.74GB
  Backing Filesystem: xfs
  Udev Sync Supported: true
  Data file: /dev/loop0
  Metadata file: /dev/loop1
  Data loop file: /var/lib/docker/devicemapper/devicemapper/data
  Metadata loop file: /var/lib/docker/devicemapper/devicemapper/metadata
  Data Space Used: 11.8MB
  Data Space Total: 107.4GB

...

WARNING: bridge-nf-call-iptables is disabled
WARNING: bridge-nf-call-ip6tables is disabled
WARNING: the devicemapper storage-driver is deprecated, and will be removed in a future release.
WARNING: devicemapper: usage of loopback devices is strongly discouraged for production use.
         Use `--storage-opt dm.thinpooldev` to specify a custom block storage device.

配置镜像加速

[root@localhost ~]# vim /etc/docker/daemon.json
{
  "registry-mirrors": ["https://05eotbde.mirror.aliyuncs.com"]
}

  [root@localhost ~]# systemctl d

你可能感兴趣的:(docker)