testpress icon indicating copy to clipboard operation
testpress copied to clipboard

No Feedback when Docker is downloading

Open pento opened this issue 7 years ago • 3 comments

It can take several minutes for Docker to download all the images it needs on first run, and there's nothing to show that it's actually doing anything.

pento avatar Sep 23 '18 02:09 pento

So, this is fun.

curl --no-buffer -XPOST --unix-socket /var/run/docker.sock "http://localhost/images/create?tag=alpine&fromImage=nginx"

I need to write something to loop through each of the images we need to create, call the API to create that image, then summarise the continually updating data into something that can be sent to the UI as a progress meter.

pento avatar Sep 23 '18 11:09 pento

Alternatively, a service could figure out what the total is, WPDE can grab that total, then the progress meter just has to add up everything it's downloaded so far.

I like this idea better.

pento avatar Sep 23 '18 12:09 pento

Oh, that only works if we're downloading a fresh install: it won't give the right status for partial downloads.

pento avatar Sep 24 '18 07:09 pento