Podman needs Volume: /var/lib/containers/storage to work.#488
Podman needs Volume: /var/lib/containers/storage to work.#488rhatdan wants to merge 1 commit intoCentOS:mainfrom
Conversation
|
@cgwalters @lmilbaum PTAL |
When running a bootc image as an OCI contianer, embeded containers will fail. This is because OSTree on OSTree is not allowed. Defaulting /var/lib/containers/storage to a Volume fixes the problem. Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
cgwalters
left a comment
There was a problem hiding this comment.
I rebased this on git main to pick up CI fixes.
There was actually another syntax error; I fixed that.
(BTW I will note here again that actually we are very close to being able to rip off the bandaid and build using the Containerfile here, which will let us switch to just saying VOLUME /var/lib/containers/storage in the Containerfile and drop this JSON)
Hmmmm, this breaks |
(Side note, I think you meant overlay on overlay, right?) Anyways what's going on here I believe is that the IOW there's two conflicting things going on in the install phase:
So...hmm. We could probably fix this by having the bind mount we generate be e.g. But, just thinking about this...couldn't we also fix this with a systemd unit in the container image that e.g. mounts a So another fix is probably instead having |
|
BTW can you link me to your canonical test case here? We need to document this. I came across containers/podman#5188 There's
I think it would likely be very helpful here longer term if podman detected if it was being run inside an existing container and did some automatic tweaks. |
cgwalters
left a comment
There was a problem hiding this comment.
Marking needs changes as this breaks installs.
|
So the issue is you are running centos-bootc and doing an |
|
|
|
(We don't just copy the |
When running a bootc image as an OCI contianer, embeded containers will fail. This is because OSTree on OSTree is not allower. Defaulting i /var/lib/containers/storage to a Volume fixes the problem.