ansible docker module:不支持的参数docker_api_version
由于我的机器和目标服务器上的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
我使用的是1.7.2,参数出现在1.4的文档http://docs.ansible.com/docker_module.html
docker_api_version
的文档读取为“在Ansible 1.8中添加”。 (请参见http://docs.ansible.com/docker_module.html页面上的评论部分)