-
Notifications
You must be signed in to change notification settings - Fork 61
Need to support docker registries that store v1 and v2 images #221
Comments
@stuart-warren I think this is fixed via #214 - are you using master? |
@jonboulle I'm pretty sure I am yes. |
Nope, it does not :-( |
Pretty sure the issue is this
Will propose a fix |
I guess this is a part of #216. |
/cc @dgonyeo @s-urbaniak |
similar issues here:
|
@s-urbaniak agreed 😞 , however docker2aci was not correctly implementing the spec for v2 registries. |
This is an unfortunate situation, but I think that #220 goes in the right direction and we should continue here. Current docker client behavior is to re-try with v1 if a v2 operation fails. As much as I don't like automatic protocol downgrades, it looks like we should implement this in order not to break registries not doing v1<->v2 mirroring. In order to untangle this from the bigger scope of #216, I'd suggest to assume that current docker2aci mode is @stuart-warren we are a bit constrained at the moment, so unfortunately I don't think this would be tackled in the upcoming rkt release cycle. Would you be interested in addressing just this out of #216? |
@lucab yeah I can give it a go. |
Some registries appear to store images that are only accessible via the same registry api version that they were pushed through.
for example:
docker2aci docker://gcr.io/google_containers/kubedns-amd64:1.7 # works!
docker2aci docker://gcr.io/google_containers/skydns:2015-10-13-8c72f8c # 404
Because the code currently assumes that a registry only supports one api version and v2 is checked first, if the registry supports v2 then any v1 images are not accessible.
The text was updated successfully, but these errors were encountered: