Open Manigunner opened 6 years ago
@chouseknecht , @TomasTomecek : Any help on this issue. We are not able to rectify what is causing this No Such image error. Please let us know your thoughts. Thanks in Advance.!!
Hm, could it be a race condition? Are you able to reproduce 100%? It almost seems as the image vanished during the build.
I would really love to see a gist of the output from:
docker images
docker ps -a
ansible-container --debug build
docker images
ansible-container --debug run
docker images
Would that be possible?
@j00bar
I seem to have this same issue. Not sure exactly whats wrong because the build step completes successfully. My conductor.yaml
version: '2'
settings:
conductor:
base: 'debian:jessie'
volumes:
- ${PWD}/temp-space:/tmp
defaults:
REACT_APP_GRAPHQL_URL: http://localhost:8000/graphql
REACT_APP_CORS_URL: http://localhost:1337/
REACT_APP_BRAVE_FILE_UPLOAD: http://localhost/upload
REACT_APP_JD_KEYWORD_URL: http://localhost:1337/hard_skill
REACT_APP_PORT: 8000
APP_ROOT: /app
REACT_APP_USER: react
services:
careers:
from: 'debian:jessie'
roles:
- { role: careers, nodejs_install_npm_user: root}
environment:
GRAPHQL_URL: '{{ REACT_APP_GRAPHQL_URL }}'
UPLOAD_URL: '{{ REACT_APP_BRAVE_FILE_UPLOAD }}'
expose:
- '{{ REACT_APP_PORT }}'
working_dir: '{{ APP_ROOT }}'
user: '{{ REACT_APP_USER }}'
entrypoint: /usr/bin/dumb-init
ports:
- 8000:8000
dev_overrides:
volumes:
- '$PWD:{{ APP_ROOT }}'
admin:
from: 'debian:jessie'
roles:
- { role: admin, nodejs_install_npm_user: root}
environment:
GRAPHQL_URL: '{{ REACT_APP_GRAPHQL_URL }}'
UPLOAD_URL: '{{ REACT_APP_BRAVE_FILE_UPLOAD }}'
expose:
- '{{ REACT_APP_PORT }}'
working_dir: '{{ APP_ROOT }}'
user: '{{ REACT_APP_USER }}'
entrypoint: /usr/bin/dumb-init
ports:
- 7000:7000
dev_overrides:
volumes:
- '$PWD:{{ APP_ROOT }}'
For the following section, the commands were run in the exact sequence specified below for clarity
docker images
docker ps -a
ansible-container --debug build
docker images
ansible-container --debug run
docker images
docker images
output.
(server-configuration-UWykhGFB) ➜ server-configuration git:(ansible-docker) ✗ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
server-configuration-admin 20180326153107 75f90800deb6 33 minutes ago 348MB
server-configuration-admin latest 75f90800deb6 33 minutes ago 348MB
server-configuration-careers 20180326152728 29c28ce43821 37 minutes ago 352MB
server-configuration-careers latest 29c28ce43821 37 minutes ago 352MB
server-configuration-conductor latest de90fd2260fb 41 minutes ago 576MB
debian jessie 5dd74d62fab8 12 days ago 123MB
ansible/container-conductor-debian-jessie 0.9.2 4f3c101a1385 6 months ago 576MB
(server-configuration-UWykhGFB) ➜ server-configuration git:(ansible-docker) ✗
ansible-container --debug build -e "ansible_python_interpreter=/usr/bin/python3" -- -vvvvv
output
https://gist.github.com/thuitaw/c2a4c02a840d5f3ee081ba4ba4bb5a8d
docker images
output (after build step above)
(server-configuration-UWykhGFB) ➜ server-configuration git:(ansible-docker) ✗ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
server-configuration-careers 20180326161222 c05f772ad484 8 minutes ago 352MB
server-configuration-careers latest c05f772ad484 8 minutes ago 352MB
server-configuration-admin 20180326153107 75f90800deb6 About an hour ago 348MB
server-configuration-admin latest 75f90800deb6 About an hour ago 348MB
server-configuration-careers 20180326152728 29c28ce43821 About an hour ago 352MB
server-configuration-conductor latest de90fd2260fb About an hour ago 576MB
debian jessie 5dd74d62fab8 12 days ago 123MB
ansible/container-conductor-debian-jessie 0.9.2 4f3c101a1385 6 months ago 576MB
(server-configuration-UWykhGFB) ➜ server-configuration git:(ansible-docker) ✗
ansible-container --debug run
output
https://gist.github.com/thuitaw/31364dbe01b3cbe853145c0a8c29384c
final docker images
output
(server-configuration-UWykhGFB) ➜ server-configuration git:(ansible-docker) ✗ docker images
REPOSITORY TAG IMAGE ID CREATED SIZE
server-configuration-careers 20180326161222 c05f772ad484 12 minutes ago 352MB
server-configuration-careers latest c05f772ad484 12 minutes ago 352MB
server-configuration-admin 20180326153107 75f90800deb6 About an hour ago 348MB
server-configuration-admin latest 75f90800deb6 About an hour ago 348MB
server-configuration-careers 20180326152728 29c28ce43821 About an hour ago 352MB
server-configuration-conductor latest de90fd2260fb About an hour ago 576MB
debian jessie 5dd74d62fab8 12 days ago 123MB
ansible/container-conductor-debian-jessie 0.9.2 4f3c101a1385 6 months ago 576MB
(server-configuration-UWykhGFB) ➜ server-configuration git:(ansible-docker) ✗
container.yml
version: '2' settings: conductor: base: centos:7 services: ansible.nginx-container: from: "nginx:ansible" roles: