Created
February 11, 2019 13:56
-
-
Save LucasRoesler/250affa3b6e3e2f1e3c26745e4b5107a to your computer and use it in GitHub Desktop.
read docker logs directly from the socket
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
#!/bin/bash | |
NAME=go-echo | |
curl -sN --unix-socket /var/run/docker.sock \ | |
http://./services/$NAME/logs\?tail\=5\&stdout\=1\&stderr\=1\×tamps\=1\&details\=1 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment