Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes Monday through Friday.


HPR3511: Podman like Vagrant

Hosted by Klaatu on 2022-01-17 00:00:00
Download or Listen

I used to use Vagrant to spin up minimal virtual machines when I needed to test code on a different distro than what I ran. Lately I've switched to Podman.

Install Podman with your distribution's package manager.

Configure it:


$ sudo --add-subuids 200000-265536 \
--add-subgids 200000-265536 \
$USER

Create a directory to share data between your container and your localhost:


$ mkdir data

Run a container, with your ./data directory mapped to /storage in the container:


$ podman run -it --volume ./data:/storage:Z busybox

Comments



More Information...


Copyright Information

Unless otherwise stated, our shows are released under a Creative Commons Attribution-ShareAlike 3.0 Unported (CC BY-SA 3.0) license.

The HPR Website Design is released to the Public Domain.