ClusterLabs/resource-agents — pull request #370 by davidvossel (2014-01-08 22:24:15+00:00)
Title: High: Introduces the docker agent to manage docker containers in an HA environment

Example:
# docker run --name="cluster-container" myimage sleep 10000
would be executed and managed by the docker HA agent with these options
OCF_RESKEY_run_cmd="sleep 10000"
OCF_RESKEY_image="myimage"
OCF_RESKEY_container="cluster-container"

If the image did not exist locally and you want the image to be dynamically pulled from the docker registry on startup, the 'allow_pull' option lets this happen.

Also, custom 'docker run' args can be set using the 'run_opts' option.

-- Vossel