I need to wait for the presense of an image in an OpenShift external docker repository. Currently I am looking at trying to pull it every X seconds.

docker pull foo/bar/fum

Unfortunately both Error response from daemon: Get .../manifests/latest: unauthorized: authentication required and Error response from daemon: name unknown sets exit code 1 so I cannot easily distinguish them.

How should I approach this?

0 Answers