Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ansible not pulling images from private Docker repository #10209

Closed
soupdiver opened this issue Feb 11, 2015 · 5 comments
Closed

Ansible not pulling images from private Docker repository #10209

soupdiver opened this issue Feb 11, 2015 · 5 comments
Labels
bug This issue/PR relates to a bug. docker

Comments

@soupdiver
Copy link
Contributor

I've problems with Ansible automatically pulling docker images from my private repository.
I do login first via:

- name: login to registry
  shell: "docker login -e {{ registry_mail }} -p {{ registry_pass }} -u {{ registry_user }} {{ registry_host }}"

and then I tried the following instructions:

- name: start foo container
  docker:
    image: registry.foo:8888/app
    name: foo-app
    env: "DB_NAME=foo,APP_HOST=foo.foo,NODE_ENV=docker"
    ports: 127.0.0.1:1337:1337
    state: running

- name: start foo container
  docker:
    image: app
    registry: registry.foo:8888
    name: foo-app
    env: "DB_NAME=foo,APP_HOST=foo.foo,NODE_ENV=docker"
    ports: 127.0.0.1:1337:1337
    state: running

- name: start foo container
  docker:
    image: app
    registry: registry.foo:8888
    username: "{{ registry_user }}"
    password: "{{ registry_pass }}"
    name: foo-app
    env: "DB_NAME=foo,APP_HOST=foo.foo,NODE_ENV=docker"
    ports: 127.0.0.1:1337:1337
    state: running

everyone gave me an error: msg: Docker API error: No such image

Doing manually docker run registry.foo:8888/app did pull and start the image.

I had to manually insert

- name: pull foo container manually
  shell: docker pull registry.foo.com:8888/app

Any ideas?

@soupdiver
Copy link
Contributor Author

Sorry overlooked #9339 and ansible/ansible-modules-core#188

@abadger
Copy link
Contributor

abadger commented Feb 13, 2015

it's fine. If you've tried devel and it's still not working for you I think this qualifies as a new issue.

@abadger abadger reopened this Feb 13, 2015
@bcoca bcoca added P3 labels Feb 16, 2015
@abadger
Copy link
Contributor

abadger commented Mar 13, 2015

This is now #10209

@abadger abadger closed this as completed Mar 13, 2015
@abadger
Copy link
Contributor

abadger commented Mar 13, 2015

Sorry -- apparently I shouldn't to bug triage early in the morning.

@abadger
Copy link
Contributor

abadger commented Mar 13, 2015

Okay, opened this on the module repo: ansible/ansible-modules-core#940

@ansibot ansibot added bug This issue/PR relates to a bug. and removed bug_report labels Mar 6, 2018
@ansible ansible locked and limited conversation to collaborators Apr 25, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug This issue/PR relates to a bug. docker
Projects
None yet
Development

No branches or pull requests

5 participants