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 https://github.com/ansible/ansible-modules-core/issues/705

Here’s my task:

  • Docker run, no way to access application
  • outcome of Running two dockerfiles
  • Docker run : Logs not displayed on the console
  • NPM install in Vagrant shared folder leads to filesystem issues
  • serverspec command returning blank strings
  • Dockerpy test container timing out before database available?
  • - name: stop the running container
      docker: 
        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 http://docs.ansible.com/docker_module.html

  • How do you manage per-environment data in Docker-based microservices?
  • Kubernetes pods using too much memory on larger machines
  • Docker slow non-local database access
  • Amazon S3 + Docker - “403 Forbidden: The difference between the request time and the current time is too large”
  • Running eval in Jenkins execute shell
  • ansible-container variables in playbook
  • 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 http://docs.ansible.com/docker_module.html)

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