Uno script vala per la gestione dei container via podman.
Le attuali implemntazioni consentono di creare nuovi container, avviarli, fermarli, metterli in pausa e riattivarli (attenzione ai vincoli imposti da podman nel caso di container rootless) il tutto attraverso un'interfaccia semplice e pulita:
Una volta eliminato il container non verrà rimosso dall'elenco sul lato sinitro ma dovrà essere eliminato con il pulsante "-".
Dalle preferenze è possibile avilitare il layout dei pulsanti, oltre che impostare il comando da eseguire per mostrare il container, di default sarà "xterm -e %s". Così impostato il comando aprirà una finestra xterm all'interno della quale eseguirà l'eventuale comando podman run o exec.
Nel caso non si volesse nessuna finestra basterà sostituire il comando nelle impostazioni con "%s", attenzione però che in quel caso nessun terminale verrà lanciato quindi non sarà possibile interagire con il container direttamente. È possibile utilizzare il terminale che si preferisce specificando il comando da avviare.
Supporta anche i parametri di avvio da riga di comando, è possibile mostrare un elenco dei comandi col flag -h (o --help):
Usage: container-manager [--id=] --name= [--cmd= ] [--username= ] [--image= ] [--mount= ] [--persist] [--background] [--term= ] [--level= ] The option --mount can be used more times for multiple mount points. If username is not specified the value 'root' will be used. If not specified container name and image use the same value. If not specified the container is not persistent, this means it will be destroyed and remove after exiting from container. If background option is specified the container will be destroyed after the startup command exits. If id is specified it must be the first parameter, otherwhise the configurations could be override. If log level was not specified is assumed to be 'OFF' for command line launch and 'ALL' for graphical interface mode.