iron-io / functions

IronFunctions - the serverless microservices platform by
https://iron.io
Apache License 2.0
3.18k stars 227 forks source link

Support for Docker registry authentication when pulling image #668

Open zephinzer opened 6 years ago

zephinzer commented 6 years ago

Hi, we're using a private Docker registry which requires authentication to pull from. After publishing the app and route, we're getting this error:

{
...
  "error": {
    "message": "Failed to pull image '.../<repo>/<image_name>:latest' unauthorized: authentication required"
  }
}

Can't find it in the documentation on how to authenticate with a Docker registry

c0ze commented 6 years ago

@zephinzer thanks for the report !

Using private repositories is something we are currently working on atm, so unfortunately there is no official way to do this.

Until we enable this functionality, I believe you can circumvent the issue by doing docker login from the host where you are running your Iron functions service. Does this work for you ?

documentation on docker login in case you need to explore your options.