Created
January 14, 2021 16:38
-
-
Save NikoWoot/ab30873e8ef1cc61e2c90ddf319dae03 to your computer and use it in GitHub Desktop.
Create custom file descriptor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkfifo /tmp/stdout /tmp/stderr | |
chmod 0666 /tmp/stdout /tmp/stderr | |
# Have the main Docker process tail the files to produce stdout and stderr | |
# for the main process that Docker will actually show in docker logs. | |
tail -f /tmp/stdout & | |
tail -f /tmp/stderr >&2 & |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment