Skip to content

Instantly share code, notes, and snippets.

@blaines
Created January 11, 2019 01:20
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 blaines/247a6539a4c1ff2f72a0931decb0d6c4 to your computer and use it in GitHub Desktop.
Save blaines/247a6539a4c1ff2f72a0931decb0d6c4 to your computer and use it in GitHub Desktop.
Dockerfile to echo Docker events to STDOUT (So they are captured by logs)
FROM alpine
RUN apk add --no-cache curl
ENTRYPOINT curl -sf --unix-socket /var/run/docker.sock -H "Content-Type: application/json" -X GET http:/v1.39/events
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment