diff options
author | Michael Gugino <mgugino@redhat.com> | 2017-11-10 20:51:00 -0500 |
---|---|---|
committer | Michael Gugino <mgugino@redhat.com> | 2017-11-14 16:12:20 -0500 |
commit | 0de92e0e4c85c876436ae21f61daee31c870705e (patch) | |
tree | 468008319e0d91fbd8a1e6c3842b8867a65b0412 /roles/docker/tasks/systemcontainer_crio.yml | |
parent | 7175c6f228f61b883d958c12ba5130f37a0615c4 (diff) | |
download | openshift-0de92e0e4c85c876436ae21f61daee31c870705e.tar.gz openshift-0de92e0e4c85c876436ae21f61daee31c870705e.tar.bz2 openshift-0de92e0e4c85c876436ae21f61daee31c870705e.tar.xz openshift-0de92e0e4c85c876436ae21f61daee31c870705e.zip |
Alternative method to create docker registry auth creds
Currently, the command 'docker login' is run when using
oreg with authentication.
On some hosts, such as hosts configured to use system containers,
the docker service is not running. 'docker login' will fail
without the docker service running.
This commit adds a module to idempotently add credentials
to the registry credentials file without the use of
'docker login'
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1511374
Diffstat (limited to 'roles/docker/tasks/systemcontainer_crio.yml')
-rw-r--r-- | roles/docker/tasks/systemcontainer_crio.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/roles/docker/tasks/systemcontainer_crio.yml b/roles/docker/tasks/systemcontainer_crio.yml index 1e2d64293..3fe10454d 100644 --- a/roles/docker/tasks/systemcontainer_crio.yml +++ b/roles/docker/tasks/systemcontainer_crio.yml @@ -179,3 +179,9 @@ register: start_result - meta: flush_handlers + +# If we are using crio only, docker.service might not be available for +# 'docker login' +- include: registry_auth.yml + vars: + openshift_docker_alternative_creds: "{{ l_use_crio_only }}" |