I'm trying to authenticate against a private Docker registry, hosted in IBM Cloud (aka Bluemix).
In Octopus, I can connect successfully against the main Docker Hub feed at index.docker.io
. And also making a request through the IBM Swagger docs here — https://registry.eu-gb.bluemix.net/api/doc/#/ — returns valid results for me.
But when trying to add the IBM Cloud as an external feed, Octopus returns:
Octopus v2018.5.6
Unable to retrieve authentication token required to perform operation.
System.Exception
at Octopus.Core.Packages.Docker.DockerRegistryOAuthClient.RetrieveAuthenticationToken
at Octopus.Core.Packages.Docker.DockerRegistryOAuthClient.GetAuthRequestHeader
at Octopus.Core.Packages.Docker.DockerRegistryOAuthClient.Get
It's not clear from the docs or the labels when configuring the feed what values I should be entering, but have tried with the following:
- URL: https://registry.eu-gb.bluemix.net
- Registry path: registry.eu-gb.bluemix.net/api/v1/images
- Username: Both my email & my user ID
- Password: Both my password for IBM Bluemix or an auth token directly.
EDIT: Have now also tried following this guide on the IBM Cloud website —
- I can create an retrieve my token OK using the Bluemix command line tools
- I can log in on the command line using the docker via
docker login -u token -p <token_value> <registry_url>
but configuring Octopus feed in the same way (username:token
, password:<token_value>
) still gives the same error as above.