Skip to content
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

Add flag for run command to retrieve output of exited containers #176

Closed
SteinRobert opened this issue Aug 29, 2022 · 1 comment · Fixed by #188
Closed

Add flag for run command to retrieve output of exited containers #176

SteinRobert opened this issue Aug 29, 2022 · 1 comment · Fixed by #188
Labels
enhancement 🎉 New feature or request

Comments

@SteinRobert
Copy link
Contributor

When invalid commands or entrypoints are given (exiting immediately) there is currently no simple way to investigate what actually went wrong. It would be nice to have some kind of --exit-logs flag or similar to see the logs of the container.

Basically docker logs. However - the container is currently autoremove=True which means it is not even possible to do docker logs manually.

Maybe it would be enough add an --autoremove flag.

@Schille
Copy link
Collaborator

Schille commented Sep 9, 2022

This will be solved Docker-like:
gefyra run ... doesn't automatically remove the containers anymore once they are exited or killed. Instead you can now pass the --rm option to gefyra run to get the old behavior back.
A docker logs <container> will return the logs from the container in question.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement 🎉 New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants