ocf_heartbeat_docker
Docker container resource agent.
Docker container resource agent.
docker [start | stop | monitor | meta-data | validate-all]
The docker HA resource agent creates and launches a docker container based off a supplied docker image. Containers managed by this agent are both created and removed upon the agent's start and stop actions.
image
(required, string, no default)
name
(optional, string, no default)
allow_pull
(optional, boolean, no default)
run_opts
NOTE: Do not explicitly specify the --name argument in the run_opts. This agent will set --name using either the resource's instance or the name provided in the 'name' argument of this agent.
(optional, string, no default)
run_cmd
(optional, string, no default)
monitor_cmd
The command is executed using nsenter. In the future 'docker exec' will be used once it is more widely supported.
(optional, string, no default)
force_kill
(optional, boolean, no default)
reuse
(optional, boolean, no default)
This resource agent supports the following actions (operations):
start
stop
monitor
meta-data
validate-all
The following is an example configuration for a docker resource using the crm(8) shell:
primitive p_docker ocf:heartbeat:docker \
params \
image=string \
op monitor timeout="30" interval="30" depth="0"
The following is an example configuration for a docker resource using pcs(8)
pcs resource create p_docker ocf:heartbeat:docker \ image=string \ op monitor timeout="30" interval="30" depth="0"
http://www.linux-ha.org/wiki/docker_(resource_agent)
Linux-HA contributors (see the resource agent source for information about individual authors)