How do I install docker on RHEL 7 offline?

Viewed 8049

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.

3 Answers

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

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
Related