Skip to main content
Version: 2.0.28

Podman

opencli podman runs podman or podman-compose against an OpenPanel user's rootless podman, so you don't need to find the user's socket yourself.

Run a podman command as the user:

opencli podman <USERNAME> <ARGS...>
Example output
# opencli podman stefan ps --format '{{.Names}}'
php-fpm-8.6
mariadb
cron

Run podman-compose for the user's services, from the user's home directory:

cd /home/<USERNAME> && opencli podman <USERNAME> compose <ARGS...>
Example output
# cd /home/stefan && opencli podman stefan compose restart cron
cron

Print the user's podman socket, for tools that read CONTAINER_HOST:

opencli podman <USERNAME> --socket
Example output
# opencli podman stefan --socket
unix:///hostfs/run/user/1003/podman/podman.sock
Was this helpful?