Last active
August 28, 2017 13:54
-
-
Save ilio/fda8288ef333e23d3e1a8d0486a3cb3d to your computer and use it in GitHub Desktop.
How to attach to logs of image hosted in docker
This file contains 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
# <IMAGE_NAME> - target image name in docker | |
# docker logs -f $(docker ps -q --filter="ancestor=<IMAGE_NAME>") | |
docker logs -f $(docker ps -q --filter="ancestor=mongo:3.3") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment