-
Notifications
You must be signed in to change notification settings - Fork 57
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
README: update local storage docs #303
Conversation
A local container image from the host is being used.
Small fix to the `image_type` fixture by deduplicating the call to `build_images`
NOTE: local storage is being used by default. If the `--local` flag is not provided, as in the above example, | ||
the latest image will be pulled into the local storage. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There's no pulling involved here, right? We're just...using the image that is local. But now I'm confused as if it's default, why do we need to talk about it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We changed this up in #262 so that we always pull the container image
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a bad default, we are experiencing bad behaviour with ai-lab-recipes, because the images are huge. Default should be to only pull if the image is missing.
This PR is stale because it has been open 30 days with no activity. Remove "Stale" label or comment or this will be closed in 7 days. |
What's the status of this? Do we still need it? |
I think @ondrejbudai had some reservations about it but I might be misremembering... but if I am, what are your thoughts here? |
First things first: I'm still not sure whether we should indeed mount the host's storage r/w:
I think I would prefer keeping the mount r/w, because it feels simpler to an end user. Regarding So I think we should deprecate One missing detail: What should be the default behavior? @cgwalters thoughts? |
Yeah those are all valid points. The Regarding mounting the store |
This makes me wonder if we can create a container from a read-only image (this should be possible, right?) and then mount the container. Alternatively, we can teach osbuild to use podman as a buildroot, but that's a more long-term project. |
It's the opposite right? BTW the big problem here is not actually about pulling it's about things like bib not using the container auth stack #142 by default, which still applies without specifying |
My take here is we should change bib to exactly match the podman default: pull-if-not-exists. Anyone who wants to update the image can already do But I am also fine with having a |
This is just another sign that this is really bad UX and a bad flag name 😅 but yeah you're right |
I think we're doing that already, no? |
Small POC here: #418 |
The default should be --pull=missing. |
$ podman run --help | grep -- --pull |
Not sure why you need to mount host storage read/write. Lock files should be able to be used if you use an ADDITIONAL STORE. If you mount /var/lib/containers/storage:/usr/lib/containers/storage:RO and have storage.conf setup with an additional store pointed at /usr/lib/containers/storage then everything will work without having a writeable storage directory. Latest fedora podman has this setup by default.
|
The issue we are having is we mount the container in an |
Since we are always pulling the latest image by default the container image will always be in the host's local storage. Update the readme to reflect this.
Additionally, address one or two of the minor comments from #120.