Last active
September 12, 2015 00:06
-
-
Save lightxu/968615a6b889d4cd82f8 to your computer and use it in GitHub Desktop.
Play docker log
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
| play_log: | |
| build: . |
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
| from ubuntu | |
| RUN ln -sf /dev/stdout /log | |
| CMD while true; do echo "test\n" >/log; sleep 1; done |
Author
Author
to run docker-compose:
docker-compose up -d
docker-compose logs
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
to run docker:
docker built -t play_log .
docker run play_log