Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

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

Đang mở
#541 1 bình luận 1 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
57/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
docker, go
Lĩnh vực
cli, devops

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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.

Ngôn ngữ chính
Go
Star
38
Fork
8
Merge trung bình
1 ngày 4 giờ
Pull request đã merge (30 ngày)
29

Chuẩn bị môi trường

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của localstack/lstk

Tất cả issue của localstack/lstk

Issue tương tự

Thêm issue về Go

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.