---
title: Single-command Docker environments on any machine with Multipass
description: Customisable Docker Environments on Mac and Windows with Multipass. Multipass
  is an ever-growing cloud development toolbox.
url: https://canonical.com/blog/docker-on-mac-and-windows-multipass?format=md
---

1. [Blog](https://canonical.com/blog)
2. Article

---

[Nathan Hart](https://canonical.com/blog/author/nhart "More about Nathan Hart")

28 January 2022

# Single-command Docker environments on any machine with Multipass

[developers](https://canonical.com/blog/tag/developers)
[docker](https://canonical.com/blog/tag/docker)
[macOS](https://canonical.com/blog/tag/macos)
[Multipass](https://canonical.com/blog/tag/multipass)
[Ubuntu](https://canonical.com/blog/tag/ubuntu)
[Virtual Machines](https://canonical.com/blog/tag/virtual-machines)
[Windows](https://canonical.com/blog/tag/windows)

---

Share the article

#### **Multipass has a new workflow tailored to run Docker containers on macOS, Windows or Linux. One single command, no dependencies, full flexibility.**

Multipass exists to bring Ubuntu-based development to the operating system of your choice. Whether you prefer the GUI of macOS ([even on M1](https://ubuntu.com/blog/canonical-transforms-linux-on-mac)), Windows or any other Linux, the unmatched experience of developing software on Ubuntu is there at your fingertips, just one “multipass launch” away. Today, the Multipass team is delighted to enhance this experience for developers working with containerised applications!

## **A single command**

Multipass can now provide a fresh VM running Docker Engine with just a single command:

```
multipass launch docker
```

Ephemeral or persistent, you decide. Multipass lets you launch and kill environments at will with easy one-command instructions. That way, you can be sure to always start from as clean a state as your CI does.

## **A near-native experience**

With a straightforward setup, Multipass will now host virtual machines running Docker, and you can interact with the Docker daemon inside the virtual machine as if it were running on your main operating system. Thanks to [aliases](https://documentation.ubuntu.com/multipass/en/latest/reference/command-line-interface/alias/), the Docker workflow allows users to issue docker commands directly from their host command line – no need to install the docker CLI. By running:

```
multipass alias docker:docker
```

users can interact with Docker without switching contexts.

## **Docker on your Ubuntu version of choice**

We’re excited about this new Docker workflow for a few reasons. First of all, you have nothing to install on your main operating system beyond Multipass itself. All the rest resides inside your Virtual Machine, without tainting your setup with excess tooling or dependencies. Moreover, cloud-native developers know all too well the sinking feeling of the container image registry getting out of control and bogging the entire operating system down. In Multipass, that bloat is contained, and a fresh slate is just one command away.

But, above all else, being able to freely select the host operating system for your containers gives you ultimate flexibility and control on which *kernel* that host runs. This is important because containers do not have their own kernel, but rely on that of the host. Linux has a track record of being compatible in terms of the interfaces to the process it runs, but there are use-cases, [such as developing for FIPS](https://ubuntu.com/security/fips), where a tailored kernel is just the thing one needs.

## **A cloud development suite, now with Portainer built in**

Multipass is a great tool for working with containers in more ways than one. Our [Minikube](https://minikube.sigs.k8s.io/docs/start/) workflow is one great example of a built-in tool for container development. [Microk8s](https://microk8s.io/) runs on top of Multipass cross-platform and is our pick for pocket-sized Kubernetes.

One extra tool we’re adding to the bag for this workflow is [Portainer](https://www.portainer.io/). In fact, each VM instance created with the Docker workflow comes with a Portainer container already running in Docker. Once that instance is launched, you’re already up and running with a convenient GUI interface for launching and managing your containers.

## **Next steps**

We are committed to make Multipass your virtualisation tool of choice to develop on Ubuntu anywhere. Visit our [Multipass page](https://canonical.com/multipass) and stop by our [Discourse](https://discourse.ubuntu.com/c/multipass/21) if you have suggested improvements.

Multipass is highly customisable thanks to its cloud-init integration. In fact, we wrote a blog last year [about how to set up a docker environment through cloud-init](https://ubuntu.com/blog/replacing-docker-desktop-on-windows-and-mac-with-multipass). [Let us know](https://discourse.ubuntu.com/c/multipass/21) how you’ve customised Multipass for your specific needs, and stay tuned for some more exciting new features in the coming releases!

If you’re looking to set up a development environment, check out our blog post on setting up [vscode linux environments](https://ubuntu.com/blog/how-to-create-a-vscode-linux-remote-environment).

## Sign up for our newsletter

Get the latest Canonical news and updates in your inbox.

Work email:

\*I agree to receive information about Canonical's
products and services.

By submitting this form, I confirm that I have read and agree to [Canonical's Privacy Policy](https://canonical.com/legal/dataprivacy).

Sign up

## Share on

---

## Related posts

[### Arduino® VENTUNO™ Q is available for pre-order with Ubuntu pre-installed](https://canonical.com/blog/arduino-ventuno-q-is-available-for-pre-order-with-ubuntu-pre-installed)

London, UK – August 25, 2026 – Following our initial collaboration announcement in March 2026, Canonical and Arduino (a subsidiary of Qualcomm Technologies, Inc.) are excited...

[Canonical](https://canonical.com/blog/author/canonical)

25 August 2026

[### Canonical becomes Gold Sponsor of Trifecta Tech Foundation](https://canonical.com/blog/canonical-becomes-gold-sponsor-of-trifecta-tech-foundation)

Canonical is pleased to announce it is now a Gold Sponsor of the Trifecta Tech Foundation, a non-profit that creates open source building blocks for critical infrastructure...

[Canonical](https://canonical.com/blog/author/canonical)

30 June 2026

[### Ubuntu Summit 26.04: connected by open source](https://canonical.com/blog/ubuntu-summit-26-04-connected-by-open-source)

What an incredible experience! Ubuntu Summit 26.04 has officially drawn to a close, but the energy from our global community is still buzzing – in the comments section, on...

[ilvipero](https://canonical.com/blog/author/ilvipero)

22 June 2026

[### A decade of Ubuntu on IBM Z and IBM LinuxONE](https://canonical.com/blog/a-decade-of-ubuntu-on-ibm-z-and-ibm-linuxone)

This year we celebrate a decade of Ubuntu Server support on the s390x architecture: marking a long-standing collaboration between Canonical and IBM that began at LinuxCon 2015....

[Pedro Lazzarotto](https://canonical.com/blog/author/pedro-lazzarotto)

12 June 2026
