Creating a Docker Swarm using Multipass and Ubuntu 20.04 on your laptop
Docker is a cool system for deploying applications as reusable containers, and Docker Swarm is a Docker Orchestrator that let's us scale the number of containers across multiple machines. Multipass is a very light weight virtual machine manager application running on Windows, Linux and macOS, that let's us easily set up multiple Ubuntu instances on our laptop at low performance impact. Therefore Multipass can serve as a means to easily experiment with Docker Swarm on your laptop, learning how it works, setting up networks, etc.
Troubleshooting Canonical's Multipass on Windows 10 Pro
Multipass is an excellent tool for running Ubuntu instances on a host system. Builds are available for Linux, macOS and Windows, and it is claimed to work well on all three. In my case, I spent three days solid trying to launch an Ubuntu instance and nearly gave up in frustration. But I found a simple problem, with a simple solution, and along the way learned about Hyper-V, WSL2, and other deep stuff about Windows.
Use Canonical's Multipass to display Linux GUI applications on macOS desktop
Sometimes we need to run a Linux GUI application but do not have a graphics display on that computer. The X11 protocol lets us display the application remotely, and Canonical's Multipass application lets us manage Ubuntu instances in a lightweight virtual machine on Mac OS X or on Windows. Maybe we have a Linux GUI app that hasn't been ported to Mac OS X, we can run it inside a virtual Ubuntu instance and with XQuartz display it on the Mac desktop.
Use Canonical's Multipass to display Linux desktop on macOS desktop and VNC
Even though macOS has an excellent command-line environment, we sometimes need to run a real Linux system. Multipass is an excellent way to run Ubuntu on macOS (or Windows, for that matter) but it doesn't easily support running a Linux desktop. In this article we demonstrating setting up a VNC server on a Multipass Ubuntu instance, and displaying it on the macOS desktop using a VNC viewer. The same techniques should work on Windows, and even with a remote Ubuntu VPS on a cloud hosting provider.