Skip to content

Instantly share code, notes, and snippets.

@sfertman
Created May 8, 2020 19:49
Show Gist options
  • Save sfertman/730e408499e1e5f508c65606ed818c17 to your computer and use it in GitHub Desktop.
Save sfertman/730e408499e1e5f508c65606ed818c17 to your computer and use it in GitHub Desktop.
Docker --health-cmd without curl; use wget
wget -q -S -O - --spider <host>:<port>/<path> &>/dev/null; [ $? -eq 0 ] || exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment