This script will ready up a running VM using Multipass with Docker, and a web GUI for Docker named Portainer.
Open a cmd terminal with administrator access, browse to the cloned repository (where the 'setup.bat' is located) and run:
./setup.bat
Follow the prompted instructions and re-run the script if it should fail.
multipass info portainer
As the networks are bridged either of them will host Portainer on port 9443.
multipass sh portainer
Make sure you run this script as an administrator.
Multipass v1.8.0 is fetched from GitHub.
multipass launch --name portainer --network name=<network-name>
In order to find eligible network names run:
multipass networks
multipass set local.privileged-mounts=true
mkdir C:\VM\portainer
multipass mount C:\VM\portainer portainer:/shared
The init.sh script sets up the virtual machine with the required tools such as Docker and Portainer. It also creates a new group for Docker in order to run the commands without sudo.
multipass shell portainer