PARALLAX

docker_host_info

Read Docker host information using the native Engine API

Collection: community.docker

Full Name: community.docker.docker_host_info

Synopsis

Read Docker host information using the native Engine API

Parameters

NameTypeRequiredDefaultDescription
docker_hoststringDocker socket or TCP URL; defaults to DOCKER_HOST or unix:///var/run/docker.sock
api_versionstringDocker API version; defaults to DOCKER_API_VERSION or auto
timeoutintRequest timeout in seconds; defaults to DOCKER_TIMEOUT or 60
tlsboolEnable TLS without server verification; defaults to DOCKER_TLS
validate_certsboolVerify TLS certificates; defaults to DOCKER_TLS_VERIFY
tls_hostnamestringExpected TLS server name; defaults to DOCKER_TLS_HOSTNAME
ca_pathstringCA certificate file
client_certstringTLS client certificate
client_keystringTLS client private key
use_ssh_clientboolfalseSelect OpenSSH for SSH Docker transports
debugboolfalseEnable diagnostic mode
containersboolfalseList containers
containers_filtersdictDocker API filters, including lists of label expressions
imagesboolfalseList images
images_filtersdictDocker API filters, including lists of label expressions
networksboolfalseList networks
networks_filtersdictDocker API filters, including lists of label expressions
volumesboolfalseList volumes
volumes_filtersdictDocker API filters, including lists of label expressions
containers_allboolfalseEnable containers_all
disk_usageboolfalseEnable disk_usage
verbose_outputboolfalseEnable verbose_output

Example

yaml
- name: Inspect Docker host information
  community.docker.docker_host_info: {}
  register: docker_information
Search
    ↑ ↓ move↵ openesc close