-
Notifications
You must be signed in to change notification settings - Fork 2
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
Service logs do not cover immediate startup failures #36
Comments
Log files are retrieved using the |
Possibly the container is already dead when Touchstone attempts the command; it really only happens when the app fails to start up in the first place (but if I can catch it while it's trying to start I do see that it's logging, it's just that it's already crashed by the time Touchstone tries to shut it down). (On the other hand if it's stopped but the container should still have its logs retrievable, and Docker still isn't providing them, maybe it's a Docker bug!) |
It occurred to me rereading this that it's possible Touchstone may be starting the container with the autoremove flag, in which case removing that flag and additing explicit container cleanup after/during shutdown could resolve this. (Speaking of which, does Touchstone clean up built services' intermediate images/layers? Obviously calling prune and potentially catching non-Touchstone stuff would be inadvisable; but as regards its own service images, the more Touchstone can clean up after itself the more disk space will be!) |
Touchstone does run containers with the During shutdown, Touchstone will clean up images that it produced (like supplying a Dockerfile in |
…tial startup of the service
Usually when a service fails to pass the healthcheck,
--log-services
provides useful info. However, sometimes the log file is empty and to see its output I have to catch the container with a Docker attach command in the fleeting window during which it is live. It seems as though Touchstone connects to the container after the initial docker run command to get the logs. I would expect it to direct the container output to a file as part of the initial container run/start command, guaranteeing all output is logged.The text was updated successfully, but these errors were encountered: