本文共 2353 字,大约阅读时间需要 7 分钟。
1、 CentOS 7.5.1804 系统最小化安装,此处省略;
[root@docker01 ~]# uname -aLinux docker01 3.10.0-862.el7.x86_64 #1 SMP Fri Apr 20 16:44:24 UTC 2018 x86_64 x86_64 x86_64 GNU/Linux[root@docker01 ~]# cat /etc/redhat-release CentOS Linux release 7.5.1804 (Core) [root@docker01 ~]#2、 修改系统默认系统软件包安装源为阿里云镜像仓库;
备份默认的源配置文件mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup 下载新的CentOS-Base.repo 到/etc/yum.repos.dcurl -o /etc/yum.repos.d/CentOS-Base.repo3、 更新系统软件包;
[root@docker01 ~]# yum update -y4、 安装docker-ce;
Step 1: 安装必要的一些系统工具yum install -y yum-utils device-mapper-persistent-data lvm2 Step 2: 添加软件源信息yum-config-manager --add-repo Step 3: 更新并安装 Docker-CEyum makecache fastyum -y install docker-ce Step 4: 开启Docker服务systemctl restart docker.service5、 校验;
[root@docker01 ~]# docker versionClient:Version: 18.09.0API version: 1.39Go version: go1.10.4Git commit: 4d60db4Built: Wed Nov 7 00:48:22 2018OS/Arch: linux/amd64Experimental: falseServer: Docker Engine - Community
Engine:Version: 18.09.0API version: 1.39 (minimum version 1.12)Go version: go1.10.4Git commit: 4d60db4Built: Wed Nov 7 00:19:08 2018OS/Arch: linux/amd64Experimental: false[root@docker01 ~]# docker infoContainers: 0Running: 0Paused: 0Stopped: 0Images: 0Server Version: 18.09.0Storage 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 local logentries splunk syslogSwarm: inactiveRuntimes: runcDefault Runtime: runcInit Binary: docker-initcontainerd version: c4446665cb9c30056f4998ed953e6d4ff22c7c39runc version: 4fc53a81fb7c994640722ac585fa9ca548971871init version: fec3683Security Options:seccompProfile: defaultKernel Version: 3.10.0-862.14.4.el7.x86_64Operating System: CentOS Linux 7 (Core)OSType: linuxArchitecture: x86_64CPUs: 2Total Memory: 1.936GiBName: docker01ID: J4S2:R5XK:AVDU:U3DO:XRPU:NXV5:WIHR:INN2:KFFN:N7NJ:HSNN:RGRRDocker Root Dir: /var/lib/dockerDebug Mode (client): falseDebug Mode (server): falseRegistry: Labels:Experimental: falseInsecure Registries:127.0.0.0/8Live Restore Enabled: falseProduct License: Community Engine6、 完成。
转载于:https://blog.51cto.com/coolsky/2343387