githubEdit

Podman

Installation

Ubuntu and Debian-based

  • apt install podman

  • apt install podman-compose

Configuration

Auto Restart using systemd

  • Create a file ~/.config/containers/systemd/guacamole.container

[Unit]
Description=Guacamole Container
Wants=network-online.target
After=network-online.target

[Container]
Image=docker.io/oznu/guacamole:latest
Exec=/usr/bin/podman run --name=guacamole --replace -p 8080:8080 -v %h/.containers/guacamole:/config

[Service]
Restart=always

[Install]
# Start by default on boot
WantedBy=multi-user.target default.target
  • systemctl --user daemon-reload

  • systemctl --user start guacamole.service

  • if fail, check with journalctl --user -xe

  • /usr/libexec/podman/quadlet -dryrun -user: test generate systemd uni file

  • systemctl --user edit guacamole.service: edit unit file manually

  • systemctl --user cat guacamole.service

Troubleshooting

short-name "$container" did not resolve to an alias and no unqualified-search registries are defined in "/etc/containers/registries.conf"

  • shortnames it seems arent resolved by default

  • Solution: add the following command to /etc/containers/registries.conf

Reference

Last updated