These are chat archives for azukiapp/azk

19th
Jun 2016
Slobodan Mišković
@slobo
Jun 19 2016 17:51

hey folks, i'm having issues pulling images from docker hub, started couple days ago it seems, not sure if 'them' (dockerhub) or 'us' (azk):

// Azkfile.js
{   mail: { image: {"docker": "tophfr/mailcatcher"}, }
➤ azk start -RBvv mail
azk: ↑ starting `mail` system, 1 new instances...
azk: ✓ checking `tophfr/mailcatcher:latest` image...
azk: ⇲ downloading `tophfr/mailcatcher:latest` image...
azk: An error occurred. It will stop all instances already running. See details below.

azk: System `mail` not running

azk: Lost internet connection or error while connecting to docker registry:
azk:   Error: 404:  >> url: https://registry-1.docker.io/v1/repositories/tophfr/mailcatcher/tags/latest

But adocker pull tophfr/mailcatcher works fine. I tried this on two different computers (osx and linux) and from two different places in the world. Any idea?

here is debug output: https://nopaste.me/view/9e6fafb9
Luiz Paulo Camargo
@luizpcam
Jun 19 2016 17:58
Hi @slobo , this error is happening with me too. But azk team is fixing it. Here is The issue: The workaround is pull direct from docker like this: adocker
Try this command and start azk again : adocker pull lop
Slobodan Mišković
@slobo
Jun 19 2016 18:01
thanks @luizpcam. Good to know I'm not crazy. Doing the pull and start works, bug unfortunately our CI process needs the -B for other custom images.
I am probably just going to inline all the images we use into local Dockerfiles, hub is not always reliable it seems
Luiz Paulo Camargo
@luizpcam
Jun 19 2016 18:04
Yeah! Me too! only we have to do is wait for new version!
Slobodan Mišković
@slobo
Jun 19 2016 18:10
I take it that -B does some sort of lookup before doing a docker pull - maybe a simple fix is to always just issue a docker pull when -B is specified - I mean it will end in no-op anyways if image is up to date - not sure it's an optimization to do any pre-checks (I'm probably naíve about some usecases)...
Luiz Paulo Camargo
@luizpcam
Jun 19 2016 18:11
I agree maybe this solution works great
Slobodan Mišković
@slobo
Jun 19 2016 18:34
this ugly fix makes it work on my computer at least: azukiapp/azk#676
(we lose progressbar instead of aborting the entire process)
Gullit Miranda
@gullitmiranda
Jun 19 2016 22:29
hi @slobo and @luizpcam. tks for PR @slobo.
I'm going to work on changing the lib of communication with the docker. it is not a simple task for this has been delayed until the time. But now became an impediment.
Gullit Miranda
@gullitmiranda
Jun 19 2016 22:34
@slobo, instead of using console.log we can use the log (like this https://github.com/azukiapp/azk/blob/master/src/cmds/scale.js#L99). would you prefer to do the change or change in the merge?
Slobodan Mišković
@slobo
Jun 19 2016 23:57
@gullitmiranda it would be great you bring it up to standard, I won't have time to look at it for a few days. thanks