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

We _need_ docker logs #1611

Open
joaoantoniocardoso opened this issue Apr 11, 2023 · 2 comments
Open

We _need_ docker logs #1611

joaoantoniocardoso opened this issue Apr 11, 2023 · 2 comments

Comments

@joaoantoniocardoso
Copy link
Member

If not possible to have it in a file like service logs, we might have a button using the commander to call docker logs

@patrickelectric
Copy link
Member

patrickelectric commented Apr 11, 2023 via email

@joaoantoniocardoso
Copy link
Member Author

joaoantoniocardoso commented Apr 11, 2023

an ad hoc hack to get it:

export THISLOGPATH="/var/logs/blueos/services/bootstrap" ; \
export THISLOG="$THISLOGPATH/bootstrap-$(date +%Y%m%d-%H%M%S)" ; \
sudo mkdir -p $THISLOGPATH ; docker logs blueos-bootstrap | \
sudo tee $THISLOG.log |>/dev/null && \
sudo zip -m $THISLOG.zip $THISLOG.log ; \
unset THISLOG THISLOGPATH ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants