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.