Closed europaul closed 9 months ago
I think this is the mainstreaming of the switch to containerd under the covers. It opens up plenty of vistas for better ways of doing things, and has been in the works for almost two years. FWIW, this is why linuxkit has its own cache, so it can do these things. Once containerd is fully enabled in docker engine, we can deprecate the linuxkit cache.
FYI yetus is complaining
FYI yetus is complaining
fixed most yetus complains - the ones that are remaining are tolerable imo.
@europaul testing looks good. Would it make sense to add the comments/config to make yetus shut up about cyclo and add the missing return value check?
@europaul testing looks good. Would it make sense to add the comments/config to make yetus shut up about cyclo and add the missing return value check?
Yes, I disabled the cyclop linter globally - I think it nags more than it helps us to write simple well-structured functions.
Added the return value check.
Between docker engine versions 24 and 25 the format of how docker stores images in tar files on disk was changed from
to
This breaks our current approach to save images as tar files and parse them for the necessary files.
Since we can no longer support multiple formats of those tar files, this commit changes the way we fetch files from docker images to use the docker API instead of relying on docker internals.
The new way to fetch files can be expressed through the following docker CLI commands: