Healthcheck in Dockerfile

Native Docker healthcheck with curl (add to Dockerfile)

HEALTHCHECK --interval=10s --timeout=3s --retries=3 CMD curl -sf http://localhost:8080/health || exit 1

tool
docker46 commands
tags
docker

More docker commands

  • docker scout cves --only-fixed myapp:latest

    Show only CVEs that already have a fix available

  • docker run --rm -it --pid=host --network=host --privileged nicolaka/netshoot

    Full-featured network debug container sharing host PID and network

  • docker buildx bake -f docker-bake.hcl --push

    Build/push multiple targets from one HCL file; parallel, DRY group definitions

  • docker buildx imagetools inspect <reg>/<name>:tag --format '{{json .Manifest}}'

    Show platforms in a manifest list without pulling layers; verify arm64+amd64

  • docker buildx create --name multi --use --driver docker-container --driver-opt network=host

    Create a BuildKit builder supporting multi-arch and cache export; default driver cannot

all 46 docker commands