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:
- To remove Podman if it is installed on the VM, run
dnf -y remove podman
- Download the following Docker and Docker dependency RPMs to a local machine
- https://download.docker.com/linux/fedora/40/x86_64/stable/Packages/containerd.io-1.6.28-3.2.fc40.x86_64.rpm
- https://download.docker.com/linux/fedora/40/x86_64/stable/Packages/docker-buildx-plugin-0.13.1-1.fc40.x86_64.rpm
- https://download.docker.com/linux/fedora/40/x86_64/stable/Packages/docker-ce-26.0.0-1.fc40.x86_64.rpm
- https://download.docker.com/linux/fedora/40/x86_64/stable/Packages/docker-ce-cli-26.0.0-1.fc40.x86_64.rpm
- https://download.docker.com/linux/fedora/40/x86_64/stable/Packages/docker-ce-rootless-extras-26.0.0-1.fc40.x86_64.rpm
- https://download.docker.com/linux/fedora/40/x86_64/stable/Packages/docker-compose-plugin-2.25.0-1.fc40.x86_64.rpm
- https://yum.oracle.com/repo/OracleLinux/OL9/baseos/latest/x86_64/getPackage/glibc-all-langpacks-2.34-83.0.2.el9_3.7.x86_64.rpm
- https://yum.oracle.com/repo/OracleLinux/OL9/baseos/latest/x86_64/getPackage/glibc-common-2.34-83.0.2.el9_3.7.x86_64.rpm
- https://yum.oracle.com/repo/OracleLinux/OL9/baseos/latest/x86_64/getPackage/glibc-2.34-83.0.2.el9_3.7.x86_64.rpm
- https://yum.oracle.com/repo/OracleLinux/OL9/baseos/latest/x86_64/getPackage/libxcrypt-4.4.18-3.el9.x86_64.rpm
- SCP the above RPMs to a location on the Oracle Linux 9.3 Linux VM, such as in the /tmp/ directory
- 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
- To start Docker, run
systemctl start docker