`lstk stop` leaves emulator-managed containers running (Azure)
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 57/100
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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.
- Lingua principale
- Go
- Stelle
- 38
- Fork
- 8
- Merge medio
- 1g 4h
- PR unite (30g)
- 29
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di localstack/lstk
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
localstack/lstk#538 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di localstack/lstk
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 1 giorno
-
copilot-api domain:platform go
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno
-
docs: clarify gh api -f vs -F and @-file expansion in the gh skillForse già presa @MatiasOlivera l’ha presa oggi. Apertaenhancement
Difficoltà 2/5 Mezza giornata Idoneità per principianti 62/100
I maintainer di solito rispondono entro 1 giorno
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 88/100
aws/aws-advanced-go-wrapper#612 ·
-
Say in the changelog that the text-index update cannot be rolled backForse già presa @praetorianer777 l’ha presa oggi. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
praetorianer777/GoTome#275 ·
I maintainer di solito rispondono entro 1 giorno