Skip to content

Instantly share code, notes, and snippets.

@ilio
Last active August 28, 2017 13:54
Show Gist options
  • Save ilio/fda8288ef333e23d3e1a8d0486a3cb3d to your computer and use it in GitHub Desktop.
Save ilio/fda8288ef333e23d3e1a8d0486a3cb3d to your computer and use it in GitHub Desktop.
How to attach to logs of image hosted in docker
# <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