安装docker最新版
1.yum remove docker \
docker-client \
docker-client-latest \
docker-common \
docker-latest \
docker-latest-logrotate \
docker-logrotate \
docker-engine
2.rm -rf /var/lib/docker
3.yum install -y yum-utils \
device-mapper-persistent-data \
lvm2
4.yum-config-manager \
--add-repo \
https://download.docker.com/linux/centos/docker-ce.repo
5.yum install docker-ce docker-ce-cli containerd.io
6.systemctl start docker
7.docker info
[root@iZlzac92kj9thkZ app]# docker infoClient: Debug Mode: falseServer: Containers: 0 Running: 0 Paused: 0 Stopped: 0 Images: 0 Server Version: 19.03.3 Storage Driver: overlay2 Backing Filesystem: extfs Supports d_type: true Native Overlay Diff: true Logging Driver: json-file Cgroup Driver: cgroupfs Plugins: Volume: local Network: bridge host ipvlan macvlan null overlay Log: awslogs fluentd gcplogs gelf journald json-file local logentries splunk syslog Swarm: inactive Runtimes: runc Default Runtime: runc Init Binary: docker-init containerd version: 894b81a4b802e4eb2a91d1ce216b8817763c29fb runc version: 425e105d5a03fabd737a126ad93d62a9eeede87f init version: fec3683 Security Options: seccomp Profile: default Kernel Version: 3.10.0-957.21.3.el7.x86_64 Operating System: CentOS Linux 7 (Core) OSType: linux Architecture: x86_64 CPUs: 8 Total Memory: 15.51GiB Name: iZlzac92kj9thkZ ID: MUHM:VRFQ:U5T4:66NT:UMBZ:AGCS:CF3U:N6XL:WGJH:SLOF:BHJA:NR56 Docker Root Dir: /var/lib/docker Debug Mode: false Registry: https://index.docker.io/v1/ Labels: Experimental: false Insecure Registries: 127.0.0.0/8 Live Restore Enabled: false |
浙公网安备 33010602011771号