Skip to content

Instantly share code, notes, and snippets.

@junaid18183
Created April 6, 2017 11:21
Show Gist options
  • Save junaid18183/5f8eb5c68ec6089ceafd7c53acc2804c to your computer and use it in GitHub Desktop.
Save junaid18183/5f8eb5c68ec6089ceafd7c53acc2804c to your computer and use it in GitHub Desktop.
how to do docker healthcheck using Goss
From busybox
COPY goss.yaml /tmp/goss.yaml
COPY goss /usr/local/bin/
COPY goss-serve /usr/local/bin/
HEALTHCHECK --interval=5s --timeout=2s --retries=12 \
CMD /usr/local/bin/goss --gossfile /tmp/goss.yaml v --format documentation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment