-
Notifications
You must be signed in to change notification settings - Fork 0
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
Capture container upgrade logs #22
Comments
Hi, |
I use websocket to capture command output. I'm not sure if there will be any differences in an upgrade. I won't have time to try for several days. |
This will be harder than you might expect. Remember that "upgrade" is an action on a service. You are asking for container logs. So logging an upgrade would require these steps:
All of this would need to work both when start-before-stop is enabled and when it is not. I am not even sure this is feasible at all. If it is feasible, it would be a large undertaking. |
A smaller possible approach might be to show recent messages logged to console on each container in the service at the end of the upgrade step. I expect the rancher API provides a means to do that, but I'm not sure... yes... https://rancher.com/docs/rancher/v1.6/en/api/v2-beta/api-resources/container/#logs |
Is your feature request related to a problem? Please describe.
Capture logs output from a container when upgrading it ? Currently, I have to found the container, the host and make a docker logs against it and I was wondering if there would be a way to get this through the api ?
The text was updated successfully, but these errors were encountered: