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

`lstk stop` leaves emulator-managed containers running (Azure)

クローズ
#541 コメント 1 件 リアクション 1 件 担当者 0 名 GitHub で見る

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

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

評価

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

調査の方向性

Start at the lstk stop command entry point and trace how it shuts down the Azure emulator; the issue does not name source files or tests. Check how the emulator creates and identifies its resource containers and networks. Done means stopping removes those resources, or offers a flag to do so, and the reproduction steps leave no emulator-managed containers or networks running.

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

説明

Thanks for lstk. Starting, stopping and switching az interception is very smooth.

After lstk stop, the Azure emulator container stops, but the containers it created for resources keep running:

  • k3d cluster containers for AKS (server, load balancer, agents) and their k3d-* Docker networks
  • ls-<sqlserver>-* (SQL Server)
  • ls-storage-* (Azurite)
  • ls-<functionapp>-* (Functions), ls-dns-server, ls-tcp-forwarder

The emulator doesn't keep Azure state across a restart, so these containers are no longer managed and keep using memory. In one case, a cluster was left with its server and load balancer but no agent nodes.

Steps to reproduce

  1. lstk start
  2. Create an AKS cluster, a SQL server, a storage account and a function app.
  3. lstk stop
  4. Run docker ps.

Expected: lstk stop removes the containers and networks the emulator created, or offers a flag to do so.

Workaround:

docker rm -f $(docker ps -aq --filter name=^ls- --filter name=^k3d-)
docker network rm $(docker network ls -q --filter name=^k3d-)

Environment: lstk 1.4.0, Windows 11 with WSL (Ubuntu), Docker Engine.

主要言語
Go
スター
38
フォーク
8
平均マージ
21時間 41分
マージ済み PR(30日)
32

環境構築

はじめの一歩

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

localstack/lstk のほかの issue

localstack/lstk の issue をすべて見る

似ている issue

Go の issue をもっと見る

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

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