docker_volume

Collection: community.general

Full Name: parallax.community.general.docker_volume

Aliases: community.general.docker_volume, docker_volume

Synopsis

Manage docker volume

Parameters

NameTypeRequiredDefaultDescription
namestringyesName of the Docker volume
statestringpresentState of the volume Choices: present, absent
driverstringlocalVolume driver to use
driver_optionsstringDriver options as key=value pairs separated by commas
labelsstringLabels as key=value pairs separated by commas
recreatestringneverWhen to recreate the volume Choices: never, options-changed, always
forceboolfalseForce removal of volume even if in use

Example

- name: Example docker_volume task
  docker_volume:
    name: <your_name>