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.
--
You received this message because you are subscribed to the Google Groups
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/ansible-project/CAKz6g-15r1aaiYZOeC80hAhr0z1qNWYu9R6V6PeJ2wUv7FyS_g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.