Install Rancher

As mentioned earlier, Rancher is the software the controls the docker engine on your desktop. We will run the sphinx images inside docker.

Download Rancher

_images/01-DownloadRancher.png
  1. In your favorite web browser navigate to this page: https://github.com/rancher-sandbox/rancher-desktop/releases

  2. Click on the “Windows” link to download the latest windows version.

Continue install

_images/02.png

Click Next.

_images/03.png

Click Install.

_images/04.png

Wait

_images/05.png

Click Finish.

Don’t restart - yet

_images/06.png

Click No.

Warning

Clicking no here allows you to choose the initial setup for rancher (namely chosing the docker engine and not enabling Kubernetes). It does produce an error however it is fixed after a reboot.

Configure the engine

_images/07.png
  1. Disable (uncheck) Kibernetes.

  2. Select “dockerd” as the container software.

Click Accept.

Close and restart

_images/08.png

Click Close and restart.

Note

After some time rancher will throw an error - this is because WLS2 and the docker image are not yet installed. Reboot your PC.

Logging back in

_images/09.png

After restart, upon log in WSL2 is installed.

Wait for WSL2 deployment

_images/10.png

Starting Rancher again shows WSL2 and the docker WSL image are being deployed.

When the messages in the bottom corner are gone, your rancher installation should be complete.

Pull required docker images

_images/11.png

You can verify that docker is up by opening a command prompt and typing docker ps. It should just return the header row (starting with ‘CONTAINER ID’). This tells us that the docker CLI tool can talk to the docker server.

Install the sphinx images. Firstly, the base image.

docker pull sphinxdoc/sphinx

Install progress

_images/12.png

Next install the the PDF version. The PDF version of sphinx is over 2Gb, so the download may take some time.

docker pull sphinxdoc/sphinx-latexpdf

Verify images in Rancher desktop

_images/13.png

Installed images are listed in Rancher.

In Rancher desktop you can click on the images tab to see installed images.