Open pento opened 6 years ago
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.
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.
Oh, that only works if we're downloading a fresh install: it won't give the right status for partial downloads.
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.