docker icon indicating copy to clipboard operation
docker copied to clipboard

Script to get token from container logs

Open aecker opened this issue 7 years ago • 3 comments

I added a script to parse the logs to get the Jupyter token. Please someone review.

aecker avatar Mar 06 '18 09:03 aecker

Is it necessary to write this to a file first?

jonasrauber avatar Mar 06 '18 10:03 jonasrauber

If you know how to do it otherwise, let me know. I don't know how to get stderr into the grep.

aecker avatar Mar 06 '18 12:03 aecker

@aecker docker logs $1 2>&1 | grep ?token= should do the job. 2>&1 pipes everything from stderr to stdout.

matthias-k avatar Mar 06 '18 15:03 matthias-k