-
Notifications
You must be signed in to change notification settings - Fork 288
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With Docker Compose logs are not displayed after restart #4890
Comments
Hi @apolitical-engineering ! Thanks for reporting this issue. I tried to reproduce this a few different ways, but haven't seen the problem you're describing. You say this started happening on August 17th. Do you have any ideas what changed? Can you try running |
Also, can you run:
? The docker-compose output in your screenshot looks ... off to me. I've never seen docker-compose print something like
|
Hi Nick, Thanks a lot for the quick reply and support! The issue was indeed related to the Docker Compose version. It seems like, for some reason, the experimental feature "use Docker Compose V2 release candidate" was enabled on the Docker App. In order to solve the issue, that experimental feature on the Docker Dashboard must be disabled. |
ooooh nice find. i wonder if this is a docker-compose v2 bug that they plan to fix? maybe we should emit a warning or log if you're using the new experimental docker-compose v2 |
See (EDIT: Fixed issue number, Compose has been moving repos so some links got broken) |
FWIW this seems reasonable to me, especially since it's still in beta but being rolled out to Docker for Mac users to canary incrementally. Another possible short-term solution [for Docker for Mac users] could be for Tilt to probe for |
@apolitical-engineering if you have a chance, would you mind seeing if you can still reproduce this with recent Tilt and docker-compose? I used tilt-dev/tilt-example-docker-compose#6 and ran |
@nicksieger I reprod earlier today. Try using the restart button in the tilt UI or 'tilt trigger' in the cli (From the upstream bug report, I suspect it's an issue with how docker compose replaces the container, so I would expect a direct container restart to work correctly) |
* dockercompose: greenlight dc version 2.2 or later Fixes #4890. * wordsmith: verbs * dockercompose: remove TestPreferComposeV1 * dockercompose: rid v1 in variable name * wordsmith: more english/simplify error message
Expected Behavior
After modifying a file, the service gets restarted as expected and logs are displayed on the Tilt dashboard.
Current Behavior
After modifying a file, the service gets restarted as expected but logs are no longer displayed on the Tilt dashboard.
Steps to Reproduce
Using the images attached above as reference:
tilt up
with Docker ComposeTiltfile
Context
tilt doctor
OutputTilt: v0.22.5, built 2021-08-20
System: darwin-amd64
Docker
Kubernetes
About Your Use Case
The issue has started after 17th August. The logs are key for the development experience. We must have reliable restarts and the logs should still be displayed on the Tilt dashboard.
The text was updated successfully, but these errors were encountered: