A simple podman
wrapper to make it work with DevContainers. Just a quick way to get Podman playing nice with your dev setup.
- Create a script file at
~/.local/bin/podman-devcontainer
(or anywhere in yourPATH
). - Copy-paste the script in.
- In VS Code, add this to your settings (or do something similar in your editor):
{ "dev.containers.dockerPath": "podman-devcontainer" }
- Done! 🎉
If you're running distrobox
, you'll want to create another wrapper to make sure it runs outside the container:
#!/bin/bash
distrobox-host-exec podman-devcontainer "$@"
This ensures podman-devcontainer
runs on the host instead of inside distrobox
.
Personally, I use a separate home directory for distrobox
, which makes keeping things organized even easier.
If you’re not using Docker (like me), you can just name it docker
instead. That way, you don’t have to tweak DevContainer settings for every editor or IDE.
Been using this setup for over a year—zero issues. Works like a charm! 🚀