ansible docker模块:不支持的参数docker_api_version

时间:2015-04-23 10:33:51

标签: docker ansible

由于我的计算机和目标服务器上的Docker API版本不同,我必须在我的任务中指定版本,就像https://github.com/ansible/ansible-modules-core/issues/705

一样

这是我的任务:

- name: stop the running container
  docker: 
    docker_api_version: 1.13
    image: my_image
    name: my_container
    state: absent

返回错误:

msg: unsupported parameter for module: docker_api_version

我使用的是ansible 1.7.2,参数显示在1.4 http://docs.ansible.com/docker_module.html的文档中

1 个答案:

答案 0 :(得分:1)

docker_api_version的文档读取“在Ansible 1.8中添加”。 (请参阅您关联的页面上的评论部分http://docs.ansible.com/docker_module.html

相关问题