Open kdebisschop opened 4 years ago
Hi, logs are also available thrue websocket websocket, could be a way ..
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 ?