How to deploy a Docker image from a private repository on Cloud Foundry?

Viewed 2232

I pushed a local Docker image with

docker push bspartifact.artifactory.example.com/bspartifact:1.0

to my private Docker hub. How can I now deploy that image to Cloud Foundry? The repo is secured by a basic authentication with username and password. Thanks.

Edit:

Trying the --docker-username flag results in the following error:

Staging...
Staging process started ...
Failed to talk to docker registry: Get https://bspartifact.artifactory.example.com/v2/: dial tcp 10.xx.xxx.xxx:443: getsockopt: connection refused
Failed to talk to docker registry: Get http://bspartifact.artifactory.example.com/v2/: dial tcp 10.xx.xxx.xxx:80: getsockopt: connection refused
2 Answers
Related