How to install Docker on an offline Oracle Linux VM

Take the following steps to download and install Docker on an offline Oracle Linux 9.3 Linux VM:

  1. To remove Podman if it is installed on the VM, run dnf -y remove podman
  2. Download the following Docker and Docker dependency RPMs to a local machine
  1. SCP the above RPMs to a location on the Oracle Linux 9.3 Linux VM, such as in the /tmp/ directory
  2. To install all RPMs from the /tmp directory, run:
dnf -y install --allowerasing \ 
   /tmp/libxcrypt-4.4.18-3.el9.x86_64.rpm \ 
   /tmp/glibc-all-langpacks-2.34-83.0.2.3l9_3_7.x86_64.rpm \ 
   /tmp/glibc-common-2.34-83.0.2.3l9_3_7.x86_64.rpm \ 
   /tmp/glibc-2.34-83.0.2.el9_3.7.x86_64.rpm \ 
   /tmp/containerd.io-1.6.28-3.2.fc40.x86_64.rpm \ 
   /tmp/docker-buildx-plugin-0.13.1-1.fc40.x86_64.rpm \ 
   /tmp/docker-ce-26.0.0-1.fc40.x86_64.rpm \ 
   /tmp/docker-ce-cli-26.0.0-1.fc40.x86_64.rpm \ 
   /tmp/docker-ce-rootless-extras-26.0.0-1.fc40.x86_64.rpm \ 
   /tmp/docker-compose-plugin-2.25.0-1.fc40.x86_64.rpm
  1. To start Docker, run systemctl start docker