Starting a stack gets all the attention. Stopping it is where leftovers come from: a port that stays taken, a container that lingers, a Tilt that still answers. This post follows flisk down step by step, as the mirror of flisk up.
Some steps are summarised. Check exact messages against your own run.
The sequence
sequenceDiagram
autonumber
actor Dev as Developer
participant CLI as flisk CLI
participant Tilt as Tilt
participant Dkr as Docker
participant Host as Host ports
Dev->>CLI: flisk down
CLI->>Tilt: stop resources
Tilt->>Dkr: remove containers
Dkr-->>Host: release ports
Tilt-->>CLI: stopped
CLI-->>Dev: confirmation
Dev->>CLI: flisk status
CLI-->>Dev: nothing running
What each step gives back
Resources. Tilt stops the resources it started. Services stop in an order that does not strand the ones that depend on them.
Containers. Docker removes the containers. Images stay, so the next up is faster.
Ports. Once the containers are gone, ports 8080, 8443 and 15433 (or 80, 443, 5432) are free again.
When it does not go cleanly
If a Tilt from an earlier run still answers, the next flisk up may refuse to start. Use flisk up --force to kill the old one first.
If disk is the problem, flisk doctor lists the cleanup commands. Try docker builder prune -f first.
Why bother
A clean stop makes the next start predictable. If you only learn the start path, every failure looks like a start failure. Often it is a stop that never finished.
Top comments (0)