OCF_HEARTBEAT_DOCKER(7)
π NAME π
okay bestie, welcome to OCF_HEARTBEAT_DOCKER(7) from the OCF resource agents manual β this is literally the ocf_heartbeat_docker-compose page π«Ά
ocf_heartbeat_docker-composeβ this script manages docker services usingdocker-compose.
β¨ SYNOPSIS β¨
the group-chat summoning spell is:
docker-compose [start | stop | monitor | meta-data | validate-all]
πΈ DESCRIPTION πΈ
so this agent manages docker services using docker-compose as an OCF resource in a High Availability setup. It relies on a well-tested docker compose YAML file thatβs distributed on an identical location on all cluster nodes.
Caveat, bestie, read this twice: 1. A YAML file (docker-compose.yml) and an optionalDockerfilemust be provided in a working directory. 2. It is suggested to test run thedocker-composeand verify on all cluster nodes before enabling this agent. π
π SUPPORTED PARAMETERS π
binpathβ thedocker-composerbinary path. For example,"/usr/bin/docker-compose". Itβs(optional, string, default "/usr/bin/docker-compose").dirpathβ the directory contains the docker compose yaml file. For example,"/data/docker". Itβs(required, string, no default).ymlfileβ thedocker-composeyaml file. For example,"docker-compose.yml". Itβs(optional, string, default "docker-compose.yml").
π₯ SUPPORTED ACTIONS π₯
This resource agent supports the following actions (operations), bestie:
startβ starts the resource. Suggested minimum timeout:240s.stopβ stops the resource. Suggested minimum timeout:20s.monitorβ performs a detailed status check. Suggested minimum timeout:10s. Suggested interval:60s.validate-allβ performs a validation of the resource configuration. Suggested minimum timeout:5s.meta-dataβ retrieves resource agent metadata (internal use only). Suggested minimum timeout:5s.
π EXAMPLE CRM SHELL π
Hereβs an example configuration for a docker-compose resource using the crm(8) shell:
primitive p_docker-compose ocf:heartbeat:docker-compose \
params \
dirpath=string \
op monitor depth="0" timeout="10s" interval="60s"
π¦ EXAMPLE PCS π¦
Hereβs an example configuration for a docker-compose resource using pcs(8):
pcs resource create p_docker-compose ocf:heartbeat:docker-compose \
dirpath=string \
op monitor OCF_CHECK_LEVEL="0" timeout="10s" interval="60s"
π SEE ALSO π
β AUTHOR β
ClusterLabs contributors (see the resource agent source for information about individual authors)
kisses and good vibes π this page is from resource-agents UNKNOWN, dated 10/01/2026, and itβs OCF_HEARTBEAT_DOCKER(7). slay, bestie π«Ά
π¦ where this page comes from
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- opensuse-leap 16.0: resource-agents 4.18.0+git105.9ea1183-160000.1.1 Β· GPL-2.0-only AND LGPL-2.1-or-later AND GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms