Podman 4.3 on Windows 10: Install
- Infrastructure and operations
- Published
- 5 min read
- @nabbisen
Table of contents
Summary Summary
Podman (opens in a new tab) is an engine for virtualization to create and maintain containers on virtual machines. It is developed by Red Hat (opens in a new tab) and published (opens in a new tab) as an open source software (OSS) under Apache License v2.0 (opens in a new tab). The source code is written in Golang (opens in a new tab).
It is cross-platform and therefore able to be installed on any of Windows (opens in a new tab) / Mac (opens in a new tab) / Linux (opens in a new tab). This must be one of their advantages. Supposed that some files defining a virtual machine or a pod (opens in a new tab) (of Kubernetes (opens in a new tab)) for grouping ones are delievered, we can develop on the same virtual enviroment with defferent workstations.
As to containerization, Docker (opens in a new tab) is very popular now.
Podman is developed with mind to make it compatible with Docker, the wonderful one used really widely. Especially, it is highly compatible since v3. With it, you can not only use existing Dockerfile (opens in a new tab) but also introduce images hosted on Docker Hub (opens in a new tab). Therefore, when trying to migrate from Docker, it may not be so difficult.
Well, installing it on Windows requires activation of WSL (opens in a new tab) (Windows Subsystem for Linux) v2. Thankfully, Podman starter deals with it almost automatically.
Here, how to install Podman on Windows 10 will be shown.
Environment Environment
- OS: Windows 10
- Virtualization: Podman 4.3.1 (opens in a new tab)
Tutorial Tutorial
* The screenshots were taken under where the locale was set to Japanese.
Package manager installation (Optional) Package manager installation (Optional)
What I used was Scoop (opens in a new tab). It is a third-party package manager for Windows. It enables us to install and uninstall packages in a clean way.
Alternatively, winget (opens in a new tab) is also available. Podman package for it is published (opens in a new tab) by the company.
Podman installation Podman installation
In case of Scoop, run:
$ scoop install podman
The output was:
Installing 'podman' (4.3.1) [64bit] from main bucket
podman-4.3.1-setup.exe (30.3 MB) [============================================================================] 100%
Checking hash of podman-4.3.1-setup.exe ... ok.
Running installer script...
Linking ~\scoop\apps\podman\current => ~\scoop\apps\podman\4.3.1
Creating shim for 'podman'.
'podman' (4.3.1) was installed successfully!
Besides, in case of winget, run winget install -e --id RedHat.Podman.
Also, without package managers, the installers for Windows are available. You can get them by downloading files named podman-#.#.#-setup.exe in Github releases (opens in a new tab).
OS configuration for Podman OS configuration for Podman
After Installing Podman package, what to do next is configure it. It is configuration of a virtual machine that is essential. However, if WSL v2 is not ready, it also helps us to install and configure it.
Run the command line below:
$ podman machine init
You will see the alert by Windows Defender Firewall to confirm which network connection(s) you permit.

The following events occur in case that WSL v2 is not ready.
It says it found WSL was not installed. Click “OK”, and the intallation will start.

Then “User Account Control” will be shown by Windows. The below is the content.
User Account Control
Do you want to allow this app to make changes to your device?
podman.exe
Verified publisher: Red Hat, Inc
File origin: Hard drive on this computer
Show more details
Yes No
Choose “Yes” to go on.
The installation will start as below.

Note: Recommended terminal Note: Recommended terminal
When Command Prompt (opens in a new tab) is the default, you will see the garbled as above. According to the official tutorial, Windows Terminal (opens in a new tab) is recommended (opens in a new tab) because of the usefulness. (The lack of it will not probably bring anything fatal for now.) You can get and install it in Windows Store (opens in a new tab).
Well, the installation will go on, and you will see confirmation of reboot:

Reboot the machine by clicking “OK”.
After OS reboots, sign in and wait one or two minutes. (It’s because the rest of installation of WSL follows the completion of some start-up items Windows intentionally delays.)
Command prompt will automatically start and quit three times. Then automatically starting PowerShell (opens in a new tab) will follow:

Moreover, another command prompt will follow:

After them, you will see confirmation of “User Account Control” on podman.exe.
Click “Yes” to go ahead.
Then you will see another confirmation on “Host Process for Windows Services”:
User Account Control
Do you want to allow this app to make changes to your device?
Host Process for Windows Services
Verified publisher: Microsoft Windows
Show more details
Yes No
Click “Yes” as before.
Completion of Podman installation Completion of Podman installation
Installation of WSL kernel will start and finish.

Conclusion Conclusion
Podman is now ready !!
Running podman machine start will bring you its virtual machine working. (Besides, initialization will take time a little at the first execution.) With it, you can manage containers and their images with the command lines similar to those of Docker.
Podman is developed with mind of security and stablity. First, Podman is daemon-less. The containers on the virtual machine benefit from it, for they are not often affected by another. Additionally, they are rootless by default, which makes running them more secure.
Hope that Podman brings environments which are reusable and isolated as possible, and you get advanced productivity or operation.
More on: Containers and virtual machines
-
This post shows how to install Docker and run vm on Devuan, a systemd-free fork of Debian.
-
With VirtualBox 7.0, installing OpenBSD 🐡 7.3 as guest on Artix Linux 🐧 as host failed.
-
The post is about how to create a OpenBSD vm with Oracle VM VirtualBox briefly with some screenshots.
Scqr [secureal]
Scqr [secureal]: the engineering practice of Reflerd Inc. (opens in a new tab)
Comments and feedback are welcome.