You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 10, 2021. It is now read-only.
Since late 2019 the method we use to fetch the size of image layers from Docker Hub has been broken for most images.
We don't have a solution but we've now open sourced the Micro Badger code. So the problem is clear and in the hope the community can help with fixing it.
We make a HEAD request instead of a GET request to get the layer size. This is more efficient and is necessary because layers can be very large. This still works for ADD commands in Dockerfiles but for RUN commands and several others we get 403 responses.
For some simple images like alpine the inspection process still works but for most images it fails. The relevant code is here and the problem can be reproduced locally with Docker Compose.
Run code
Clone the repo and follow the steps in the README.
In the .env file enable debug logging for the mminspect module.
MB_LOG_DEBUG=mminspect
Fetch image
Get an image with some RUN commands like our microscaling image.
Since late 2019 the method we use to fetch the size of image layers from Docker Hub has been broken for most images.
We don't have a solution but we've now open sourced the Micro Badger code. So the problem is clear and in the hope the community can help with fixing it.
We make a
HEAD
request instead of aGET
request to get the layer size. This is more efficient and is necessary because layers can be very large. This still works forADD
commands in Dockerfiles but forRUN
commands and several others we get 403 responses.For some simple images like
alpine
the inspection process still works but for most images it fails. The relevant code is here and the problem can be reproduced locally with Docker Compose.Run code
Fetch image
The text was updated successfully, but these errors were encountered: