Skip to content

Instantly share code, notes, and snippets.

@YarekTyshchenko
Last active March 4, 2016 13:20
Show Gist options
  • Save YarekTyshchenko/b2a5b9dd42248f817037 to your computer and use it in GitHub Desktop.
Save YarekTyshchenko/b2a5b9dd42248f817037 to your computer and use it in GitHub Desktop.
logspout docker snippet
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