creative-commoners / create-ss-demo

BSD 3-Clause "New" or "Revised" License
2 stars 0 forks source link

Validate that docker hub image exists in instantiate command #1

Open robbieaverill opened 5 years ago

robbieaverill commented 5 years ago

If you run instantiate with a docker image that doesn't exist, you'll end up getting a build error from SSP. We could save time and resources here by checking from the command and exiting early.

Example error:

  Warning  Failed                 13m (x4 over 14m)  kubelet, ip-xx-xx-x-xxx.us-west-2.xyz.xyz  Failed to pull image "robbieaverill/mfademo:0.1": rpc error: code = Unknown desc = Error response from daemon: pull access denied for robbieaverill/mfademo, repository does not exist or may require 'docker login'

In this case the image name was mfa-demo with a dash in it.