-
Notifications
You must be signed in to change notification settings - Fork 10
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to pull docker image lfaino/lorean:latest. Image is far too big #19
Comments
Dear @eburgueno, |
@lfaino sorry, maybe I wasn't clear
I am not trying to build the image. I am trying to pull it from Docker Hub. I have 120GB of space available, but the pull fails because the image is too big (the final image is 50GB, but during pull it needs to be extracted, so that takes more space). The reason the image is too big is because you are using multiple
I will try this version tomorrow.
Two issues with this statement:
Version pinning is a different issue from the one I'm reporting in #19. Happy to open a separate issue to discuss this further if you like. (edit: correctly indent numbered items) |
@eburgueno, |
@lfaino awesome. Thank you. Opened #21 to deal with version pinning. If you prioritise fixing that one for the noIPRS version to include the URLs of the third party software, I can close #20 and open a new PR to help optimise the I can also help with a |
@eburgueno |
Your Docker image seems to be huge. So big that I cannot pull if even when I have 120GiB available for my Docker daemon:
I can add more space of course, but the reality is that your
Dockerfile
needs extensive optimisation. All of thoseRUN
need to be squashed into a single one wherever possible, and use&&
instead.Please have a look at the Best practices for writing Dockerfiles, particularly sections Minimize the number of layers and RUN sections.
As it stands, building the image is also not reproducible, so I cannot recommend it for use in production. You're
COPY
ing artifacts into your published image that don't have a source declaratively defined anywhere:Ideally these should be replaced with a
wget
from their source instead, just like yougit clone
some of the other dependencies.I will send a PR with a some suggestions to better optimize the
Dockerfile
, but I cannot test it myself without access to those source files.The text was updated successfully, but these errors were encountered: