SUSE Linux Enterprise Server 12 使用二进制文件方式快速安装 Docker CE (社区版)
准备环境
软件包
先检查下系统上以下软件包的版本, 如果版本太低请先使用zypper升级。
64位的LINUX操作系统, 3.10或以上版本的KERNEL(推荐使用最新版本)。
# cat /etc/os-release
dkcdcsapd960:/tmp # cat /etc/os-release
NAME="SLES"
VERSION="12-SP3"
VERSION_ID="12.3"
PRETTY_NAME="SUSE Linux Enterprise Server 12 SP3"
ID="sles"
ANSI_COLOR="0;32"
CPE_NAME="cpe:/o:suse:sles:12:sp3"
# uname -a
Linux sles12 4.4.73-5-default #1 SMP Tue Jul 4 15:33:39 UTC 2017 (b7ce4e4) x86_64 x86_64 x86_64 GNU/Linux
iptables 1.4 或以上版本
# rpm -q iptables
iptables-1.4.21-6.1.x86_64
git 1.7 或以上版本
# rpm -q git-core
git-core-2.12.3-27.17.2.x86_64
XZ Utils 4.9 或以上版本
# rpm -q xz
xz-5.0.5-4.852.x86_64
用户与组
新建docker组
# groupadd docker
下载安装
从官网(https://download.docker.com/linux/static/stable/ )下载最新的稳定版。
# cd /tmp
# wget https://download.docker.com/linux/static/stable/x86_64/docker-18.06.1-ce.tgz
--2019-01-29 10:04:21-- https://download.docker.com/linux/static/stable/x86_64/docker-18.06.1-ce.tgz
Resolving download.docker.com (download.docker.com)... 143.204.101.113, 143.204.101.96, 143.204.101.104, ...
Connecting to download.docker.com (download.docker.com)|143.204.101.113|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 43831680 (42M) [application/x-tar]
Saving to: 'docker-18.06.1-ce.tgz'
100%[======================================>] 43,831,680 20.4MB/s in 2.0s
2019-01-29 10:04:24 (20.4 MB/s) - 'docker-18.06.1-ce.tgz' saved [43831680/43831680]
解压缩下载的压缩包
# tar xzvf docker-18.06.1-ce.tgz
docker/
docker/docker-containerd
docker/docker-proxy
docker/docker
docker/docker-runc
docker/dockerd
docker/docker-containerd-ctr
docker/docker-containerd-shim
docker/docker-init
将解压后 /tmp/docker 路径下的所有文件复制到 /usr/bin/
# cp docker/* /usr/bin/
启动dockerd守护进程
# dockerd &
INFO[2019-01-29T10:09:39.650923149+01:00] libcontainerd: started new docker-containerd process pid=30229
INFO[2019-01-29T10:09:39.651020621+01:00] parsed scheme: "unix" module=grpc
INFO[2019-01-29T10:09:39