Date
1 - 5 of 5
CF Lattice support for private registries (Artifactory Docker registry).
dharmi
Yes, the private registry, Artifactory, has auth credentials to access. I
ssh'd into the Lattice VM and updated the .dockercfg with the below JSON (this works for my 'docker pull' commands), vagrant(a)ubuntu-trusty-64:~$ cat .dockercfg { "https://docker-local.corp.myorg.com" : { "auth" : "scrubbed", "email" : "dharmi(a)gmail.com" } } When running Lattice CLI, I am assuming that the authentication parameters are taken from the .dockercfg file. I don't see any other means to provide private registry's (Artifactory) credentials either on CF or from Lattice. I could be wrong. pls suggest. -- View this message in context: http://cf-dev.70369.x6.nabble.com/cf-dev-CF-Lattice-support-for-private-registries-Artifactory-Docker-registry-tp693p725.html Sent from the CF Dev mailing list archive at Nabble.com. |
|
Gwenn Etourneau
No is not related, so you private registry have no user or password ?
toggle quoted message
Show quoted text
On Tue, Jul 14, 2015 at 2:21 PM, dharmi <dharmi(a)gmail.com> wrote:
I was running the application over VPN and dns was indeed the rootcause. |
|
dharmi
I was running the application over VPN and dns was indeed the rootcause.
Thanks for pointing. This is the error I see when I try to create an app from a Docker image hosted on Artifactory from Lattice CLI. Artifactory logs indicate that I am not authenticated when submitting the below request, even with .dockercfg configured. $ ltc create myapp docker-local.corp.myorg.com/ubuntu_bb:1.0.0 *Error fetching image metadata: HTTP code: 403* The same works fine when I run *docker pull docker-local.corp.myorg.com/ubuntu_bb:1.0.0*. Searching a bit, I found this issue <https://github.com/cloudfoundry-incubator/lattice/issues/35> , not sure if its related. Thanks in advance. -- View this message in context: http://cf-dev.70369.x6.nabble.com/cf-dev-CF-Lattice-support-for-private-registries-Artifactory-Docker-registry-tp693p710.html Sent from the CF Dev mailing list archive at Nabble.com. |
|
Gwenn Etourneau
Maybe dns issue inside the vagrant box .. you should use your dns inside
toggle quoted message
Show quoted text
the box I guess. On Mon, Jul 13, 2015 at 4:28 PM, Dharmi <dharmi(a)gmail.com> wrote:
Hi, |
|
dharmi
Hi,
This is a question related to CF Lattice issue to pull Docker image from private Artifactory Docker registry. 'posting on CF-Dev assuming that this could be a generic CF issue to connect to private repos. pls suggest if otherwise. Please find the configuration: Mac OSX 10.10.4 cf version 6.11.3 vbox 4.3.28r100309 Vagrant 1.7.2 Lattice from github master branch ltc version v0.2.5 Artifactory Pro Power Pack 3.5.2 While pulling images from Docker Hub is working fine, images from my local Artifactory Docker registry throws the below error. * v1 ping attempt failed with error: Get https://docker-local.corp.myorg.com/v1/_ping <https://docker-local.corp.myorg.com/v1/_ping>: dial tcp: lookup docker-local.corp.myorg.com <http://docker-local.corp.myorg.com>: no such host. HTTP attempt: unable to ping registry endpoint http://docker-local.corp.myorg.com/v0/ <http://docker-local.corp.myorg.com/v0/>* I tried setting up .dockercfg file with valid entries, but still in vain. The same works fine if I perform a 'Docker pull' from Artifactory. Any pointers would be helpful. Thanks, Dharmi |
|