Docker Community Forums

Share and learn in the Docker community.

Installing docker on centos, dependencies issues

docker

(Luckygee) #1

Hello Everyone,

I am facing an issue installing docker-ce from package on a server that has no internet access.

This is the version of my Linux | centos-release-7-2.1511.el7.centos.2.10.x86_64

Virtualization: vmware
Operating system: CentOS Linux 7 (Core)
CPE OS Name: cpe:/o:centos:centos:7
Kernel: Linux 3.10.0-327.el7.x86_64
Architecture: x86-64

Im trying to follow the instructions as set here however since the box doesnt have internet I can’t do the yum install.

So I was doing it with rpm -ivh. So far im getting dependency errors after dependency errors.

I tried these 3 versions of docker and all of them are giving out a dependency errors.

-rw-r–r--. 1 root root 19521288 Nov 8 00:52 docker-ce-17.03.0.ce-1.el7.centos.x86_64.rpm
-rw-r–r--. 1 root root 19529520 Nov 8 00:02 docker-ce-17.03.2.ce-1.el7.centos.x86_64.rpm
-rw-r–r--. 1 root root 29108 Nov 8 00:53 docker-ce-selinux-17.03.0.ce-1.el7.centos.noarch.rpm
-rw-r–r--. 1 root root 29108 Nov 8 00:03 docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch.rpm
-rw-r–r--. 1 root root 19509116 Nov 8 01:26 docker-engine-1.13.1-1.el7.centos.x86_64.rpm
-rw-r–r--. 1 root root 29024 Nov 8 01:26 docker-engine-selinux-1.13.1-1.el7.centos.noarch.rpm

rpm -ivh /docker/images/docker-ce-17.03.2.ce-1.el7.centos.x86_64.rpm

warning: /docker/images/docker-ce-17.03.2.ce-1.el7.centos.x86_64.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
error: Failed dependencies:
docker-ce-selinux >= 17.03.2.ce-1.el7.centos is needed by docker-ce-17.03.2.ce-1.el7.centos.x86_64

rpm -ivh /docker/images/docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch.rpm

warning: /docker/images/docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch.rpm: Header V4 RSA/SHA512 Signature, key ID 621e9f35: NOKEY
error: Failed dependencies:
selinux-policy-base >= 3.13.1-102 is needed by docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch
selinux-policy-targeted >= 3.13.1-102 is needed by docker-ce-selinux-17.03.2.ce-1.el7.centos.noarch

So I tried looking for that selinux package the I found on the site below:
https://www.rpmfind.net/linux/rpm2html/search.php?query=selinux-policy-base&submit=Search+…&system=centos&arch=

I tried these 2 and unfortunately, its asking for another dependency.

ftp://195.220.108.108/linux/centos/7.3.1611/os/x86_64/Packages/selinux-policy-minimum-3.13.1-102.el7.noarch.rpm
ftp://195.220.108.108/linux/centos/7.3.1611/os/x86_64/Packages/selinux-policy-targeted-3.13.1-102.el7.noarch.rpm

rpm -ivh selinux-policy-minimum-3.13.1-102.el7.noarch.rpm

warning: selinux-policy-minimum-3.13.1-102.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
policycoreutils-python >= 2.5 is needed by selinux-policy-minimum-3.13.1-102.el7.noarch
selinux-policy = 3.13.1-102.el7 is needed by selinux-policy-minimum-3.13.1-102.el7.noarch

rpm -ivh selinux-policy-targeted-3.13.1-102.el7.noarch.rpm

warning: selinux-policy-targeted-3.13.1-102.el7.noarch.rpm: Header V3 RSA/SHA256 Signature, key ID f4a80eb5: NOKEY
error: Failed dependencies:
policycoreutils >= 2.5 is needed by selinux-policy-targeted-3.13.1-102.el7.noarch
selinux-policy = 3.13.1-102.el7 is needed by selinux-policy-targeted-3.13.1-102.el7.noarch

Has anyone tried installing docker on this version of centos before that has no access to the internet?
Do you have any easier way of getting through this?

Thank you in advance!


(Saciperere) #2

Hello everyone.

Has anyone found a solution for this? I’m having the same sort of trouble.

Thanks