Re: Running Docker private images on CF
dharmi
Thanks for the details.
toggle quoted message
Show quoted text
I deployed diego-docker-cache-release and I could run private docker images now. One note however. I had to modify the **property-overrides.yml *to add the IP:<port> of the *docker-cache/0* job among the *insecure_docker_registry_list* of for it to work. Without which it says {"timestamp":"1439701925.514369965","source":"garden-linux","message":"garden-linux.pool.umojd9q7s54.provide-rootfs-failed","log_level":2,"data":{"error":"repository_fetcher: ProvideRegistry: could not fetch image f93137f1-.. from registry 10.250.21.80:8080: Registry 10.250.21.80:8080 is missing from -insecureDockerRegistryList ([docker-registry.service.cf.internal:8080])","session":"2.13"}} Consul discovery at fault I suspect, if not, pls suggest. Another observation on the Docker registry URI while running docker private images(*, not a Diego issue, I guess*) Looks like by default (*when I don't mention **docker_login_server*), the images are pulled using the V1 api $ cf start myapp Starting app myapp in org myorg / space default as user... Creating container Successfully created container Staging... Docker daemon running Staging process started ... Caching docker image ... *Logging to https://index.docker.io/v1/ <https://index.docker.io/v1/> ...* WARNING: login credentials saved in /root/.dockercfg. Login Succeeded Logged in. Pulling docker image <dockerid>/<image>:latest ... latest: Pulling from <dockerid>/image 511136ea3c5a: Pulling fs layer 30d39e59ffe2: Pulling fs layer c90d655b99b2: Pulling fs layer ….. when I explicitly mention the V2 URI, which is *registry.hub.docker.com <http://registry.hub.docker.com>* (*correct me if I am wrong*), pulling the image fails. $ cf start myapp Starting app myapp in org myorg / space default as user... Creating container Successfully created container Staging... Docker daemon running Staging process started ... Caching docker image ... *Logging to https://registry.hub.docker.com/ <https://registry.hub.docker.com/> ...* WARNING: login credentials saved in /root/.dockercfg. *Login Succeeded* Logged in. Pulling docker image <dockerid>/<image>:latest ... time="2015-08-19T19:59:44Z" level=error msg=*"Error from V2 registry: Authentication is required."* Pulling repository <dockerid>/<image> Error: image <dockerid>/<image>:latest ... not found Thanks On Tue, Aug 11, 2015 at 6:45 PM, Eric Malm <emalm(a)pivotal.io> wrote:
Hi, Dharmi, --
Wise people learn when they can. Fools learn when they must.” - The Duke of Ellington |
|