tilt
tilt copied to clipboard
Tilt does not show logs after restarting a container (docker-compose)
Expected Behavior
Tilt UI should continue showing logs of a container after it restarts.
Current Behavior
After a container restarts, Tilt UI no longer shows the output of the container.
Steps to Reproduce
Using the tilt provided example.
git clone https://github.com/tilt-dev/tilt-example-docker-compose
cd tilt-example-docker-compose
tilt up
Go to UI & restart the app container. It does not output expected "Server listening on port 3000" like it does on initial start.
Context
tilt doctor Output
Tilt: v0.31.2, built 2023-02-10 System: linux-amd64
Docker
- Host: unix:///var/run/docker.sock
- Server Version: 23.0.1
- API Version: 1.42
- Builder: 2
- Compose Version: v2.14.1
Kubernetes
- Env:
- Context:
- Cluster Name: Unknown
- Namespace: default
- Container Runtime: unknown
- Version: Error: invalid configuration: no configuration has been provided, try setting KUBERNETES_MASTER environment variable
- Cluster Local Registry: none
About Your Use Case
Unable to develop effectively since I can't see logs after restarting.
One work-around is to disable the resource and enable it again. logs will show correctly.
:thinking: I can repro with Compose 2.14 but not with 2.15. can you try upgrading to Compose v2.15 and see if it fixes the problem for you?
I've faced this issue too. Unfortunately, if you are using Rancher Desktop, as I do, the latest release only contains Compose 2.14. https://github.com/rancher-sandbox/rancher-desktop/releases/tag/v1.7.0