On my machine running Docker Desktop for ARM Mac 4.11.1 (84025), running balena preload gets stuck at Reading image information.
% balena preload …
| Checking that the image is a writable file
| Finding a free tcp port
| Checking if the image is an edison zip archive
/ Creating preloader container
| Starting preloader container
- Fetching application USER/APP
- Reading image information
The cause is that the container never receives data on stdin, so preload.py remains idle.
Speculation suggests that this broke with Docker Desktop 4.10.0 based on moby/moby#43799. I've also submitted an upstream PR to apocas/docker-modem#148 to make the change in this PR the default, but I'm submitting this PR in hopes to resolve the issue for balena users faster.
For future refactors, I suggest adding additional logging in preload.py that's more helpful than what I've contributed in this PR.
On my machine running Docker Desktop for ARM Mac 4.11.1 (84025), running
balena preload
gets stuck atReading image information
.The cause is that the container never receives data on
stdin
, sopreload.py
remains idle.Speculation suggests that this broke with Docker Desktop 4.10.0 based on moby/moby#43799. I've also submitted an upstream PR to apocas/docker-modem#148 to make the change in this PR the default, but I'm submitting this PR in hopes to resolve the issue for balena users faster.
For future refactors, I suggest adding additional logging in
preload.py
that's more helpful than what I've contributed in this PR.