You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Docs for API v1.19 states that it is possible to specify registry query parameter:
Query Parameters:
...
registry – The registry to pull from.
...
I'm trying to do so, but it's ignores registry parameter:
$ curl -v -XPOST --unix-socket /var/run/docker.sock "http:/images/create?fromImage=bronislav/clsi-sharelatex:latest®istry=quay.io"
* Trying /var/run/docker.sock...
* Connected to http (/var/run/docker.sock) port 80 (#0)
> POST /images/create?fromImage=bronislav/clsi-sharelatex:latest®istry=quay.io HTTP/1.1
> Host: http
> User-Agent: curl/7.42.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Tue, 28 Jul 2015 14:22:51 GMT
< Transfer-Encoding: chunked
<
{"status":"Pulling repository bronislav/clsi-sharelatex"}
{"errorDetail":{"message":"Error: image bronislav/clsi-sharelatex:latest not found"},"error":"Error: image bronislav/clsi-sharelatex:latest not found"}
* Connection #0 to host http left intact
If I move registry parameter to the image path than docker started to pull image:
curl -v -XPOST --unix-socket /var/run/docker.sock "http:/images/create?fromImage=quay.io/bronislav/clsi-sharelatex:latest"
* Trying /var/run/docker.sock...
* Connected to http (/var/run/docker.sock) port 80 (#0)
> POST /images/create?fromImage=quay.io/bronislav/clsi-sharelatex:latest HTTP/1.1
> Host: http
> User-Agent: curl/7.42.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Content-Type: application/json
< Date: Tue, 28 Jul 2015 14:48:16 GMT
< Transfer-Encoding: chunked
<
{"status":"Pulling repository quay.io/bronislav/clsi-sharelatex"}
...
{"status":"Status: Image is up to date for quay.io/bronislav/clsi-sharelatex:latest"}
* Connection #0 to host http left intact
My environment:
$ docker version
Client version: 1.7.1
Client API version: 1.19
Go version (client): go1.4.2
Git commit (client): 786b29d-dirty
OS/Arch (client): linux/amd64
Server version: 1.7.1
Server API version: 1.19
Go version (server): go1.4.2
Git commit (server): 786b29d-dirty
OS/Arch (server): linux/amd64
$ uname -a
Linux ip-10-5-3-181.empire 4.0.9-coreos #2 SMP Thu Jul 23 20:22:11 UTC 2015 x86_64 Intel(R) Xeon(R) CPU E5-2670 v2 @ 2.50GHz GenuineIntel GNU/Linux
Further investigation shows that this parameter simply ignored in the request handler. It's only takes in account fromImage, repo and tag parameters: api/server/server.go#L729-L733.
The text was updated successfully, but these errors were encountered:
In general, I would say the registry parameter is a bit of an outlier. This is a good data model, but doesn't match the rest of the image resolution magic.
From what I can tell, #15093 looks like the correct fix. I'll take a close peak at it.
Docs for API v1.19 states that it is possible to specify
registry
query parameter:I'm trying to do so, but it's ignores registry parameter:
If I move registry parameter to the image path than docker started to pull image:
My environment:
Further investigation shows that this parameter simply ignored in the request handler. It's only takes in account
fromImage
,repo
andtag
parameters: api/server/server.go#L729-L733.The text was updated successfully, but these errors were encountered: