内网安装 docker - Linux suse

1.准备工作

1.1 系统信息
linux-kfh5:~ # lsb_release -a 
LSB Version:    n/a
Distributor ID: SUSE
Description:    SUSE Linux Enterprise Server 12 SP3
Release:        12.3
Codename:       n/a
1.2 安装包
catatonit-0.1.3-2.1.x86_64.rpm
containerd-1.2.2-22.1.x86_64.rpm
docker-18.09.1_ce-54.1.x86_64.rpm
docker-bash-completion-18.09.1_ce-54.1.noarch.rpm
docker-libnetwork-0.7.0.1+gitr2711_2cfbf9b1f981-11.1.x86_64.rpm
docker-runc-1.0.0rc6+gitr3748_96ec2177ae84-14.1.x86_64.rpm
docker-zsh-completion-18.09.1_ce-54.1.noarch.rpm

2.安装步骤

1.配置 zypper 本地源

zypper ar file:///root/docker local-docker

/root/docker 是上述安装包路径

2.停用其他无用源并删除缓存

zypper lr
zypper clean

编辑 /etc/zypp/repos.d/ 里面所有无用源信息中的 enabled 属性 为 0

3.安装 docker

zypper in docker
7 new packages to install.
Overall download size: 37.4 MiB. Already cached: 0 B. After the operation,
additional 177.6 MiB will be used.
Continue? [y/n/...? shows all options] (y): y

验证忽略

Retrieving package catatonit-0.1.3-2.1.x86_64                                                                                                                                                       (1/7), 271.4 KiB (781.4 KiB unpacked)
catatonit-0.1.3-2.1.x86_64.rpm:
    Header V3 RSA/SHA256 Signature, key ID 3dbdc284: NOKEY
    V3 RSA/SHA256 Signature, key ID 3dbdc284: NOKEY

catatonit-0.1.3-2.1.x86_64 (local-docker): Signature verification failed [4-Signatures public key is not available]
Abort, retry, ignore? [a/r/i] (a): i

所有后续步骤忽略即可

5.启动 docker

systemctl start docker.service

6.验证docker

docker ps
ddocker images

你可能感兴趣的:(docker)