Last active
March 4, 2016 13:20
-
-
Save YarekTyshchenko/b2a5b9dd42248f817037 to your computer and use it in GitHub Desktop.
logspout docker snippet
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
docker rm -vf logspout | |
docker run -d --name logspout --restart=always --volume=/var/run/docker.sock:/tmp/docker.sock -p 8000:8000 gliderlabs/logspout:v2 | |
# Then run in a shell: | |
curl http://${DOCKER_HOST:0:17}:8000/logs | |
# Connect to logspout log viewer | |
curl http://<ip_of_docker_host>:8000/logs |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment