docker
docker copied to clipboard
Script to get token from container logs
I added a script to parse the logs to get the Jupyter token. Please someone review.
Is it necessary to write this to a file first?
If you know how to do it otherwise, let me know. I don't know how to get stderr into the grep.
@aecker docker logs $1 2>&1 | grep ?token= should do the job. 2>&1 pipes everything from stderr to stdout.