Skip to content

feat: add support for containers - #97

Open
nmooscisco wants to merge 1 commit into
n0-computer:mainfrom
nmooscisco:feat/use-podman-containers
Open

nmooscisco wants to merge 1 commit into
n0-computer:mainfrom
nmooscisco:feat/use-podman-containers

Conversation

@nmooscisco

Copy link
Copy Markdown

Many distributed systems dependencies are shipped as Docker/OCI container images from upstream, which makes it desirable to be able to repurpose them in a Patchbay test. Docker itself is somewhat annoying to use in this way, as a global daemon has to own all of the network namespaces, but Podman, a mostly Docker-compatible runtime, is able to attach containers to a caller-specified network namespace.

In order to enable the use of Podman in both rootless mode and rootful modes, this patch introduces a mechanism for spawning a subprocess in the Podman user namespace via podman unshare, then creates Patchbay's user namespace as a child of Podman's. This then enables Patchbay to function as normal, and when a container is spawned, it can be attached to a Patchbay Device.

This has been tested with both rootless and rootful Podman.

Many distributed systems dependencies are shipped as Docker/OCI
container images from upstream, which makes it desirable to be
able to repurpose them in a Patchbay test. Docker itself is
somewhat annoying to use in this way, as a global daemon has to
own all of the network namespaces, but Podman, a mostly
Docker-compatible runtime, is able to attach containers to a
caller-specified network namespace.

In order to enable the use of Podman in both rootless mode and
rootful modes, this patch introduces a mechanism for spawning
a subprocess in the Podman user namespace via `podman unshare`,
then creates Patchbay's user namespace as a child of Podman's.
This then enables Patchbay to function as normal, and when a
container is spawned, it can be attached to a Patchbay `Device`.

This has been tested with both rootless and rootful Podman.
@Frando

Frando commented Nov 25, 2026

Copy link
Copy Markdown
Member

Have you seen #45? How does this differ?

@nmooscisco

Copy link
Copy Markdown
Author

Have you seen #45?

I had not seen it!

How does this differ?

#45 seems more robust. I was working on a proof of concept as part of a broader testing initiative. I will retarget my tests on top of your change stack and report back.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants