Running a container binary as a native host command via bin export #2
bethropolis
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This is a demo of exporting a binary from a Podbox container so it runs on the host like a native command, using
cowsayas the example.Create
~/.config/podbox/fedora-cowsay.toml:Build it:
This can take a while depending on the base image and package list.
Enable the quadlet and start the container:
The bin shim is exported when the quadlet files are installed, based on the
binslist under[integration.export]. It lands in~/.local/bin, so as long as that's onPATH,cowsaybehaves like any other host command:All reactions