Error while building docker image

28 views
Skip to first unread message

Darvin Denmian

unread,
Sep 23, 2015, 2:34:05 PM9/23/15
to ansible...@googlegroups.com
Hi guys,

I'm facing a weird problem when trying to build a docker image, 
this is the basic workflow:

1) I successfully build a docker image called "accounts-skeleton"

...
- name: "Accounts: building Accounts Skeleton image"
  docker_image:
    path: /tmp/
    name: accounts-skeleton
    tag: latest
    state: present
  tags:
    - containers
    - accounts-skeleton

# docker images
REPOSITORY          TAG                 IMAGE ID            CREATED             VIRTUAL SIZE
accounts-skeleton   latest              c227713a6340        2 hours ago         790.9 MB

2) and then I try to create a second image using the image "accounts-skeleton",
as follows:

...
- name: "Accounts: building Accounts Base image"
  docker_image:
    path: /home/accounts/current/
    name: accounts-base
    tag: latest
    state: present
  when: deploy is defined
  tags:
    - containers
    - accounts-base

but when I execute the playbook the following error message appears:

TASK: [accounts | Accounts: building Accounts Base image] *********************
failed: [192.168.1.170] => {"changed": true, "failed": true, "image_id": null}
msg: Error: Error: image library/accounts-skeleton:latest not found
Log:Step 0 : FROM accounts-skeleton

Do you guys have some idea of what is going on?

Thanks in advance.

Darvin Denmian

unread,
Sep 24, 2015, 1:26:06 PM9/24/15
to ansible...@googlegroups.com
Anyone?

Anand Sampat

unread,
Jul 31, 2016, 2:14:41 PM7/31/16
to Ansible Project, darvin....@gmail.com
Ah I'm having this exact same issue. Did you every find a solution?
Reply all
Reply to author
Forward
0 new messages