本文共 1397 字,大约阅读时间需要 4 分钟。
yum install -y yum-utils device-mapper-persistent-data lvm2
yum-config-manager \
--add-repo \yum makecache fast
yum install docker-ce
systemctl start docker
yum remove docker-cerm -rf /var/lib/docker*
[root@localhost ~]# docker info
Containers: 0Running: 0Paused: 0Stopped: 0Images: 0Server Version: 18.06.1-ce
Storage Driver: overlay2Backing Filesystem: xfsSupports d_type: trueNative Overlay Diff: trueLogging Driver: json-fileCgroup Driver: cgroupfsPlugins:Volume: localNetwork: bridge host macvlan null overlayLog: awslogs fluentd gcplogs gelf journald json-file logentries splunk syslogSwarm: inactiveRuntimes: runcDefault Runtime: runcInit Binary: docker-initcontainerd version: 468a545b9edcd5932818eb9de8e72413e616e86erunc version: 69663f0bd4b60df09991c08812a60108003fa340init version: fec3683Security Options:seccompProfile: defaultKernel Version: 3.10.0-862.el7.x86_64Operating System: CentOS Linux 7 (Core)
OSType: linuxArchitecture: x86_64CPUs: 1Total Memory: 470.6MiBName: localhost.localdomainID: PW54:2XWL:25WX:S3VY:5APC:DPDE:6OLJ:IW2N:OC36:GIM6:XOZB:2J5D`Docker Root Dir: /var/lib/dockerDebug Mode (client): falseDebug Mode (server): falseRegistry: Labels:Experimental: falseInsecure Registries:127.0.0.0/8Live Restore Enabled: false 转载于:https://blog.51cto.com/popli3/2309026