Configure Docker Autoheal target containers
mainDocker Autoheal identifies which containers to monitor using labels. You can configure this in three ways:
- Specific Label: Apply the label
autoheal=trueto your target container. - Watch All: Set the environment variable
AUTOHEAL_CONTAINER_LABEL=allin the Autoheal container to monitor every container. - Custom Label Key: Set
AUTOHEAL_CONTAINER_LABELto the name of an existing label that has the valuetrue(e.g., if your containers havemy-label: true, setAUTOHEAL_CONTAINER_LABEL=my-label).