3

New to docker.

Need to install docker on a RHEL 7 (no gui) system.

  1. Does the RHEL 7 installation come with docker already on it? If not, where do I get it from? (I cannot use the docker software at docker.com, it has to come from RedHat - government rules, not mine)

  2. Once procured, how do I install it on a system that is not connected to the internet.

I hope I've made my request as simple as possible, let the questions begin.

CrashFive
  • 83
  • 1
  • 2
  • 8

3 Answers3

4

Red Hat's build of docker is available in the Red Hat Enterprise Linux 7 Extras channel, but only for the Server variant of the product. You can download individual packages from the Customer Portal after login, but it is going to be a bit cumbersome because the docker package has multiple dependencies.

Alternatively, you can use the reposync tool to mirror the entire Extras channel on a network-connected machine which has a subscription. Or you can use yum in download-only mode and copy over the RPMs stored in the cache directory (but please copy them to a regular directory on the target, and use yum install to install them).

Florian Weimer
  • 32,022
  • 3
  • 48
  • 92
  • that's sort of what I'm beginning to run into after I tried installing docker.rpm, is the dependency requirements. Is there not a package/zip file or something out there that has all of it in a single location for install? – CrashFive Nov 28 '17 at 20:26
  • 1
    I think I accidentally posted this in the wrong forum, too, by the way. – CrashFive Nov 28 '17 at 20:27
  • I added a few suggestions. I do not have much experience with disconnected operation. And yes, it is probably not the right forum. – Florian Weimer Nov 28 '17 at 20:29
1

Fire up a centos system.

$ sudo yumdownloader docker --resolve

Copy the RPMs over to your RH machine and run:

$ sudo rpm -ivh *rpm
$ sudo systemctl start docker
rich
  • 18,987
  • 11
  • 75
  • 101
0

Gen rpm on CentOS 7 with docker:

$ yumdownloader --resolve docker-ce

Then, install on target:

$ rpm -ivh docker-ce-19.03.11-3.el7.x86_64.rpm
l2m2
  • 402
  • 3
  • 9