Open deliciouslytyped opened 10 months ago
Ok, well, I rechecked the output and mounting that directory doesn't actually seem to have fixed the issue, so either I'm not mounting it in the correct place, or it's not the problem.
@deliciouslytyped You are correct, buildah
's --volume
does not accept podman
's anonymous volumes. You will need to provide --volume
to buildah in format of --volume <absolute-path-on-host>:<path-on-container>:<volume-options>
( see: https://github.com/containers/buildah/blob/main/docs/buildah-build.1.md )
Inorder to get absolute path of an anonymous volume of podman do podman volume inspect <volume-name>
and get path from Mountpoint
field of the inspect output.
Does that make sense for my usecase? The whole point of my usecase would be that I want a volume to be created without having to worry about where. Is the issue that buildah may not have any mechanisms for volume creation?
@deliciouslytyped Unfortunately, buildah as-of now is not as advanced as podman it cannot manage/create/access volumes created by podman
. I'd like to suggest this as a feature request for podman
. Once implemented there you can use podman build ...
where feature must allow mounting anonymous volumes inside build-container and not use buildah
but podman build
for your use-case. WDYT ?
Also could you explain your use-case a bit so maintainers can suggest a solution for this ?
Let me tag @containers/buildah-maintainers to see if I am missing anything.
Is this a discrepancy between Docker and Podman? Does Docker support anonymous volumes for build?
Oh, OK. I was never really clear on the difference between podman build and buildah. I'm only using buildah because there was a github action for it.
I don't know about the situation docker currently and I don't have time to look into it right now.
Buildah version 1.32.1 Usecase is container nesting, issues like:
So I don't need to refer to the volume elsewhere.
Though in my case this wasn't fatal because it was trying to pull from the docker side instead of the podman side. (sidenote: Is there any way to turn this off? It should only be trying to use podman.
) I read in some other issue that this is (IIRC) an overlay-on-overlay problem or something, I'm not sure. Anyway;
Not supporting anonymous volumes: