How to Share One Podman Container Across PowerShell and WSL2 Using Podman Desktop

Podman Desktop runs a single Linux VM called podman-machine-default that serves as a shared container engine accessible from both PowerShell and WSL2. This eliminates the resource waste and confusion of running two separate container runtimes, allowing developers to start, inspect, and debug containers from either shell interchangeably. The setup relies on both shells connecting to the same VM over SSH, ensuring consistent port access and a single source of truth for container state. A common pitfall involves Podman Desktop silently reverting the CLI default back to rootful mode through a dialog prompt, overriding manual connection changes. The correct fix is to stop the machine, apply the rootless setting at the machine level using podman machine set --rootful=false, and restart it.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.
Discussion (0)
Log in to join the discussion and vote.
Log in