docker_service fails to bring up docker-compose.yml when image has a tag?

27 views
Skip to first unread message

Gerald Spencer

unread,
Jan 4, 2017, 7:27:51 PM1/4/17
to Ansible Project
As the title states, docker_service fails when I try to launch a docker-compose file that includes an image tag.

The odd thing is that this docker-compose.yml works when I am on the host machine...
The task works if I leave out the tag..

Currently using ansible 2.2.0.0

Error:
raise NoSuchImageError(\"Image '{}' not found\".format(self.image_name))\r\n
compose.service.NoSuchImageError: Image 'container_of_interest:tag'

Chunk of compose file:
container-name:
    image: container_of_interest:tag
    command: run -p file


Specific task:
    - name: Docker-compose all of the things
      docker_service:
        project_src: /path/to/compose
        pull: yes
        state: present
      become_user: user
      become: true
Reply all
Reply to author
Forward
0 new messages