-
Notifications
You must be signed in to change notification settings - Fork 88
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
"portage" image produce huge I/O every time #40
Comments
@anonymous09 There's not a whole lot you can do. Docker is basically extracting the volume image at that point. That obviously needs to happen, so afaik there's nothing you can do about it. |
See also: presslabs/gitfs#319, presslabs/gitfs#305 |
Yeah, not much we can do as the Docker downstream, unless we see a good replacement for the way we currently recommend using the repository. Users might try fiddling with different storage backends or see if |
Oh, I think BuildKit's ability to mount content directly from another image might be useful here? # syntax=docker/dockerfile:1
FROM gentoo/stage3
RUN --mount=type=bind,from=gentoo/portage,source=/var/db/repos/gentoo,target=/var/db/repos/gentoo \
emerge app-misc/hello
CMD ["hello"] (Then built with |
Good day. I am using Gentoo images in Continuous Integration (Gitlab CI). I run docker via commands:
And every time first command produce huge I/O because all content from /usr/portage copying from image to container "portage".
How I can prevent it?
Can you create image without "VOLUME /usr/portage" keyword?
The text was updated successfully, but these errors were encountered: