Deploy docker image from registry using basic auth

I am trying to pull a docker image from a private registry at Swisscom Cloudfoundry. The registry is protected by basic auth as we don't want to give access to anyone.

Now, using the CLI CLI, I would like to push the image to the cloud area:

cf push appname -o my-registry.domain.com/image

      

Logically this will result in an error indicating no authentication credentials.

cf push appname -o username:password@my-registry.domain.com/image

      

results in an undefined error during the phase.

Is there a way to take an image from a Basic Auth protected registry via the CF CLI?

I was unable to find anything in the CF CLI documentation.

+3


source to share


2 answers


cf push

currently (version 6.26.0) does not support private docker registries.
This feature is currently being added to the Cloud Controller. It is not yet available in the latest CF (v258), but the API is documented in the CC release candidate documentation: http://apidocs.cloudfoundry.org/release-candidate/apps/creating_a_docker_app.html You can use cf curl

to call this API until cf push

it supports it.
The next CLI Tracking Story is https://www.pivotaltracker.com/story/show/143540893 .



+3


source


Cloud Foundry will support pushing apps from images to private Docker repositories pretty soon, this feature was released as part of Cloud Controller CC 1.28.0 . Expect this feature to be released in CF v260 to be adopted by providers over the next 4-6 weeks.



The Command Line Interface (CLI) has a history in its lag for supporting adding username / password as parameter and environment variable to cf push

.

0


source







All Articles