Skip to content

Instantly share code, notes, and snippets.

@michaellwest
Created January 16, 2023 21:01
Show Gist options
  • Save michaellwest/599b1e9bd7786dcd3a389277fae13232 to your computer and use it in GitHub Desktop.
Save michaellwest/599b1e9bd7786dcd3a389277fae13232 to your computer and use it in GitHub Desktop.
Curl the home page when the CM reports unhealthy. For use with Sitecore and Docker.
$containers = docker ps -a --format "table {{.Names}}"
$container = $containers | ConvertFrom-Csv | Where-Object { $_.NAMES -match "-cm" } | Select-Object -First 1 -ExpandProperty NAMES
docker exec $container curl http://cm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment