Skip to content

Docker

Index

docker::container_is_running

Return true if the named Docker container exists and its status is 'running'.

Arguments

  • $1 (container): name

docker::wait_for_healthy_container

Block until the named Docker container reports a health status of 'healthy'. Optional second arg caps how long to wait; unset means wait forever.

Arguments

  • $1 (container): name
  • $2 (optional): timeout in seconds (default: no timeout)

docker::create_network

Create a Docker network with the given name if one does not already exist.

Arguments

  • $1 (docker): network name