Closed acaranta closed 8 years ago
Hmm, I understand your problem, but if your registry doesn't require login, you shouldn't need to define it in the registries
section of Maestro. Maestro will not try to login to it, and just let Docker do its thing for the image pull. Does that not work?
Well you see, the problem is that we need to define it .... because not only it does not support login ... but even worse ... it is not even SSL enabled ;) so I need to define in the maestro configuration as an "http://..." registry in order for maestro to raise the 'insecure' flag when docker-py communicates with it.
I could ignore all this, but a/ we currently have the "relicgistry" (and this temporary solution sounds like it's going to stick for a moment :( b/ although it is an odd case, I thought it could be good that maestro-ng could also handle registries http only and without login (to cover everything) ;)
Oh I forgot ... everything was working fine without this PR when maestro-ng was controlling a 1.4 docker-engine. we upgrading to 1.9.1 ... and I guess the way the engine logs in changed ... therefore it fails ...
Don't want to be bothering too much ... but err ... do you need more info in any way ? ;)
Nope, just been busy :) Merged. Thanks a lot!
Thx for your help ;)
Hi !
Recently, we have seen a problem when using maestro-ng on a docker >1.9 host and trying to use a non https registry.... no images were pulled and we got the error :
(yes the 1.9 host was configured with the correct --insecure-registry option ;) ... as it was working with a docker 1.4 host.
From what I saw/understood, it was the login attempt that failed. Our old test registry (used in dev here) does not support login ... therefore, the login failed ... and as it failed ... well the execution failed ... I realised that even if you do not specify a username in the maestro-ng configuration file (leaving the username: empty), maestro was still trying to loin to the registry.
Therefore, here is what I changed to make it work : The LoginTask now checks if the username is not empty before trying to login, if no username is supplied then, it stops there.
The trick works perfectly for our needs... therefore I thought it might help orthers and allow us to keep using the original GIT repo of maestro-ng ;)
Thanks for your work !