upgrading docker-ce while the service is stopped leads to delayed/surprise service restart
Maintainer antworten meist innerhalb von 1 Tag
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 39/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- docker
- Bereich
- devops
Rechercherichtung
The report describes the docker-ce upgrade and systemd marker behavior on Oracle Linux 9 with RHEL 9 packages, but names no source file or test. Start by locating the package scripts that set or clear needs-restart, then reproduce the listed dnf and systemctl sequence. Done means upgrading while Docker is stopped no longer leaves a marker that triggers an unnecessary restart after the service starts.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
we just recently discovered that if you upgrade the docker-ce package (at least on oracle9 with the rhel9 packages) while the docker service is stopped, then the docker service will be still marked as needs-restart after the upgrade
that is not neccessary as when the service will be started after the package upgrade, it will be running the new version, so there is no need for another restart
but because of the lingering mark, the next (random) execution of systemctl reload-or-restart --marked will trigger a restart on the docker service which is surprising to say the least.
here are the steps you can use to reproduce the issue:
dnf install docker-ce-29.1.5-1.el9
systemctl enable --now docker
systemctl stop docker docker.socket
dnf install docker-ce-29.2.0-1.el9
systemctl start docker
systemctl show docker --property=Markers
systemctl reload-or-restart --marked
- Vorherrschende Sprache
- Dockerfile
- Sterne
- 37
- Forks
- 42
- Ø Merge
- 16 Std. 53 Min.
- Gemergte PRs (30 T.)
- 30
Entwicklungsumgebung
- Enthält ein Dockerfile oder eine Docker-Compose-Datei
- Keine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus docker/packaging
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 74/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
docker/packaging#586 · 1 Kommentar ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 65/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 48/100
docker/packaging#558 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
docker-ce is unable to be installed on UBI 10 container images because iptables-nft is not availableOffen
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 52/100
Maintainer antworten meist innerhalb von 1 Tag
Alle Issues in docker/packaging
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 72/100
GitTools/actions#2297 · 1 Reaktion ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
-
breaking change
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 84/100
it-at-m/lhm_actions#441 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 1-3 Stunden Anfängerfreundlichkeit 82/100
ministryofjustice/cloud-platform#8677 ·
Maintainer antworten meist innerhalb von 1 Tag