AttributeError: 'module' object has no attribute 'APIError'

# Failing on this task

  • name: Build the docker Nginx image
    docker_image:
    path: “{{ docker_nginx_dir }}”
    state: build
    name: nginx

Please update to the latest development version of Ansible and the latest versions of Docker/Ubuntu and see if you have problems.

Docker is evolving VERY quickly and I suspect we shouldn’t even assume 13.10 is supported, and we know Ansible 1.6.6 module versions are going to have issues with newer Docker versions.