Docker Rancher VM - jonatello/lab-musing GitHub Wiki

FreeNAS 11.2 comes with a built in Docker VM (using Bhyve) which is running Rancher for management. According to this (https://redmine.ixsystems.com/issues/78843) it is being removed, but I'll use this page for my notes on it anyway.

https://www.ixsystems.com/documentation/freenas/11.2-legacy/vms.html#dockerhost

Accessing the Rancher VM

You can SSH in using the Com Port which is listed within the FreeNAS WebGUI under Info of the VM. For example if /dev/nmdm3B is listed:

sudo cu -l /dev/nmdm3B -s 9600

The default username is rancher, the password will be what was specified in the raw file

Download and install the Rancher container

sudo docker run -d --restart=unless-stopped -p 8080:8080 rancher/server

Give it time to start all of the services and then attempt to browse to the container IP at port 8080

Once it loads, click "Add a host" from the top and add the VM by selecting "This site's address" and save. Follow the instructions and run the "sudo docker run" command within the VM's shell. After it completes confirm you can see the VM listed under Infrastructure > Hosts