upgrading docker-ce while the service is stopped leads to delayed/surprise service restart
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 39/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- docker
- 領域
- devops
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- Dockerfile
- スター
- 37
- フォーク
- 42
- 平均マージ
- 16時間 53分
- マージ済み PR(30日)
- 30
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
docker/packaging のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
docker/packaging#586 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 3/5 1〜2日 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
docker/packaging#558 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
docker-ce is unable to be installed on UBI 10 container images because iptables-nft is not availableオープン
難易度 3/5 1〜2日 初心者へのやさしさ 52/100
メンテナーはふだん 1 日以内に返信
docker/packaging の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
GitTools/actions#2297 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
-
breaking change
難易度 1/5 1時間未満 初心者へのやさしさ 84/100
it-at-m/lhm_actions#441 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1〜3時間 初心者へのやさしさ 82/100
ministryofjustice/cloud-platform#8677 ·
メンテナーはふだん 1 日以内に返信