Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

bug: stale instance entries accumulate in config when container is recreated

オープン 初心者向け
#483 コメント 3 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
72/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
活発
技術スタック
docker, go
領域
cli

調査の方向性

microcks の開始フローから始め、RemoveInstance と UpsertInstance を追跡します。再現手順として ~/.config/microcks/config の設定とコンテナの再作成手順を使用してください。新しい ID でコンテナを再作成しても、同じインスタンス名に対する重複エントリが残らないことを確認し、その後、再起動後の設定に現在のレコードが 1 件含まれていることを確認してください。

索引モデルが issue の本文から書いたものです。

説明

stale
Describe the bug

Description

When a container is removed externally (e.g. docker stop && docker rm) and
microcks start recreates it, the old instance entry is never removed from config.
A new entry is appended instead, causing duplicate instance records to accumulate.

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

Steps to Reproduce

  1. ./microcks start
  2. docker stop microcks && docker rm microcks
  3. ./microcks start
  4. cat ~/.config/microcks/config two instance entries with same name but different container IDs

Screenshots

Image Image

Root Cause

RemoveInstance matched by Name instead of ContainerID. Since the recreated
container has a new ID, UpsertInstance never finds a match and always appends.

Microcks version or git rev

No response

Install method (docker-compose, helm chart, operator, docker-desktop extension,...)

No response

Additional information

No response

主要言語
Go
スター
52
フォーク
67
平均マージ
4日 3時間
マージ済み PR(30日)
22

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

microcks/microcks-cli のほかの issue

microcks/microcks-cli の issue をすべて見る

似ている issue

Go の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。