Skip to content

Instantly share code, notes, and snippets.

@LucasRoesler
Created February 11, 2019 13:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save LucasRoesler/250affa3b6e3e2f1e3c26745e4b5107a to your computer and use it in GitHub Desktop.
Save LucasRoesler/250affa3b6e3e2f1e3c26745e4b5107a to your computer and use it in GitHub Desktop.
read docker logs directly from the socket
#!/bin/bash
NAME=go-echo
curl -sN --unix-socket /var/run/docker.sock \
http://./services/$NAME/logs\?tail\=5\&stdout\=1\&stderr\=1\&timestamps\=1\&details\=1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment