Skip to content

Instantly share code, notes, and snippets.

@webgtx
Last active February 25, 2023 11:49
Show Gist options
  • Select an option

  • Save webgtx/d9fe1860e6c3f742e4ad36a0f823d6e7 to your computer and use it in GitHub Desktop.

Select an option

Save webgtx/d9fe1860e6c3f742e4ad36a0f823d6e7 to your computer and use it in GitHub Desktop.
is it ok to run podman in the toolbox?

By default, the toolbox command works in toolbox container and podman does not.

However, if you want to use podman from within a toolbox container, you can use flatpak-spawn --host to run a command from outside the toolbox from within the toolbox.

If you alias podman to flatpak-spawn --host podman inside your container, then it’ll run your system’s podman command from within the container.

This is mainly useful if you have a terminal set up to launch your dev environment as a toolbox container and you want to run a command outside of your container sometimes.

(For what it’s worth, some commands already seem to mostly “just work” inside a container, like toolbox and rpm-ostree.)

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