`lstk stop` leaves emulator-managed containers running (Azure)
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
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
lstk start- Create an AKS cluster, a SQL server, a storage account and a function app.
lstk stop- 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
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của localstack/lstk
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
localstack/lstk#538 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của localstack/lstk
Issue tương tự
-
documentation hacktoberfest priority: low skill: good first issue status: ready for dev
Độ khó 2/5 Nửa ngày Mức phù hợp với người mới 85/100
hyperledger-labs/fabric-smart-client#2142 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
numberly/vault-db-injector#107 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area/import kind/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
[DOC] Wrong sg_egress_ports range in the Terraform Databricks Guide for AWS Hub & Spoke with Network FirewallCó thể đã có người làm @akhil9tiet đã nhận hôm nay. Đang mởdocs
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 72/100
databricks/terraform-provider-databricks#6080 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 3 ngày
-
spqr-coordinator usage shows 'run --config', but 'run' is not a subcommand (unknown command "run")Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
pg-sharding/spqr#3092 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày