Call podman in toolbox
Method 1: Using flatpak-spawn
flatpak-spawn --host podman <command>
Method 2: Enabling the Podman Socket (Native Podman CLI) 1. On the host system, enable and start the Podman user socket
systemctl --user enable --now podman.socket
- Inside the Toolbox container, install the Podman client if it isn’t already there:
sudo dnf install podman
- Run commands by pointing to the remote socket:
podman --remote <command>
Passthought / Setup NVIDIA GPU
- Config NVIDIA Container Toolkit (if not yet)
# Setup toolkit
sudo dnf install -y nvidia-container-toolkit
# Generate CDI (important to podman determine GPU)
sudo nvidia-ctk cdi generate --output=/etc/cdi/nvidia.yaml
# If you want to use with rootless, generate cdi file to home directory
nvidia-ctk cdi generate --output=$HOME/.config/cdi/nvidia.yaml
- Check
podman devices list
You shoule see name of device ://nvidia.com
Notice: SELinux can prevent and make any error
- In docker compose file
devices:
- nvidia.com/gpu=all