ansible docker module: unsupported parameter docker_api_version

Because of different Docker API versions on my machine and the target server, I have to specify the version in my task, as for

Here’s my task:

  • Docker in Development Environment
  • Play Framework app in Docker is not working
  • Cannot connect to mongodb container from linux host
  • How to pull docker image from docker hub private registry into Azure Container Service (ACS)?
  • Jenkins publish HTML from docker container
  • “IO Error: Unknown host specified” occurs randomly within docker container
  • - name: stop the running container
        docker_api_version: 1.13
        image: my_image
        name: my_container
        state: absent

    returns the error:

    msg: unsupported parameter for module: docker_api_version

    I’m using ansible 1.7.2, and the parameter appears in the documentation for 1.4

  • Docker for Windows: cannot assign requested address
  • Reuse host binaries or share between containers in Docker
  • docker swarm - if the container in a service dies on an error, will the task be replicated elsewhere?
  • Choosing docker project structure
  • How to configure an application in openshift via a REST endpoint?
  • Amazon container registry login
  • One Solution collect form web for “ansible docker module: unsupported parameter docker_api_version”

    The documentation for docker_api_version reads “added in Ansible 1.8”. (See comments section on the page you linked

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.