Bug 1820551
Summary: | Automatically starting a container on boot is not possible through cockpit WebUI | ||
---|---|---|---|
Product: | Red Hat Enterprise Linux 8 | Reporter: | Apurbita Mukherjee <apmukher> |
Component: | cockpit-podman | Assignee: | Matej Marušák <mmarusak> |
Status: | CLOSED ERRATA | QA Contact: | Jan Ščotka <jscotka> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 8.1 | CC: | dornelas, jnovy, klaas, sbarcomb |
Target Milestone: | rc | Keywords: | Triaged |
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2022-11-08 09:14:53 UTC | Type: | Enhancement |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Apurbita Mukherjee
2020-04-03 10:42:27 UTC
I suppose we could integrate `podman generate systemd` to enable auto-start. I'm not a big fan of its start/stop approach instead of just killing/starting the container (that falls over too much), but at least from cockpit-podman's POV that's the official API. It has a convention for predictable unit names, so that we can also map a container to a unit name to see if autostart is enabled. If it helps, we now document deleting/running (what I assume you mean by killing/starting) the container instead of start/stop. https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/building_running_and_managing_containers/using-systemd-with-containers_building-running-and-managing-containers#starting_containers_with_systemd https://www.redhat.com/sysadmin/podman-shareable-systemd-services I don't know the status of support for this in 'podman generate systemd', though. Matej, want to have a look at that one? This has been introduced in version cockpit-podman-39. It is only supported for superuser for now. Enabling it for normal user might come in future. See release note: https://cockpit-project.org/blog/cockpit-260.html This now also has support for normal users, see https://github.com/cockpit-project/cockpit-podman/pull/1039 Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory (Moderate: container-tools:rhel8 security, bug fix, and enhancement update), and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHSA-2022:7457 |