Skip to content

craxo/multipass-portainer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 

Repository files navigation

This script will ready up a running VM using Multipass with Docker, and a web GUI for Docker named Portainer.

Run the script on Windows

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.

To find the web GUI:

multipass info portainer

As the networks are bridged either of them will host Portainer on port 9443.

To attach shell to the VM:

multipass sh portainer

Make sure you run this script as an administrator.

The script will invoke the following

Download and install multipass

Multipass v1.8.0 is fetched from GitHub.

Launch Multipass from terminal:

multipass launch --name portainer --network name=<network-name>

In order to find eligible network names run:

multipass networks

Mount local directory to the VM instance:

multipass set local.privileged-mounts=true
mkdir C:\VM\portainer
multipass mount C:\VM\portainer portainer:/shared

Transfer init.sh

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.

Connect terminal to the VM

multipass shell portainer

About

Portainer hosted in Docker in a Multipass VM

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published