Here's what I have:
JAR
file)Dockerfile
) with this java applicationThe image was built with:
sudo docker build -t registry.eu-de.bluemix.net/watson2018/imagerecognition:latest .
The image is pushed to a private docker registry in IBM Cloud
$ ibmcloud cr image-list
Listing images...
REPOSITORY TAG DIGEST NAMESPACE CREATED SIZE SECURITY STATUS
registry.eu-de.bluemix.net/watson2018/imagerecognition latest aba50d315338 watson2018 2 hours ago 194 MB Scanning...
I can see the image in the private registry https://console.bluemix.net/containers-kubernetes/registry/private and I can pull it.
Then in the same location (Germany) I created successfully an IBM Function: bx wsk action create recognize --docker registry.eu-de.bluemix.net/watson2018/imagerecognition:latest
The problem is: When I run the function, it can't pull the image.
Results:
{
"error": "Failed to pull container image 'registry.eu-de.bluemix.net/watson2018/imagerecognition:latest'."
}
Any idea how to run this function with docker image from the private registry?
Docker Actions only support public registries like an image publicly available on dockerhub.