2. Prepare Private Registry
A. Collect Image Sources
Using a computer with internet access, browse to our releases page and find the Rancher 2.x.x release that you want to install. Don’t download releases marked
Pre-release, as they are not stable for production environments.
From the release’s Assets section, download the following three files, which are required to install Rancher in an air gap environment:
||This file contains a list of all files needed to install Rancher.|
||This script pulls all the images in the
||This script loads images from the
B. Publish Images
After collecting the release files, publish the images from
rancher-images.txt to your private registry using the image scripts.
Note: Image publication may require up to 20GB of empty disk space.
From a system with internet access, use the
rancher-images.txtimage list to create a tarball of all the required images.
./rancher-save-images.sh --image-list ./rancher-images.txt
rancher-images.tar.gzfiles to the Linux host that you’ve provisioned by completing the substeps below.
Log into your registry if required.
docker login <REGISTRY.YOURDOMAIN.COM:PORT>
rancher-load-images.shto extract, tag and push the images to your private registry.
./rancher-load-images.sh --image-list ./rancher-images.txt --registry <REGISTRY.YOURDOMAIN.COM:PORT>