Repository navigation
Conversation
The sed that adjusted /usr/share/containers/storage.conf appended a bare
"/var/lib/shared", line after the commented additionalimagestores entry,
producing invalid TOML. Podman >= 5 warns "Failed to obtain podman
configuration" and silently falls back to default settings (overlay
driver), which fails inside DevWorkspaces without /dev/fuse or
unprivileged overlay mounts ("failed to mount overlay for metacopy
check: permission denied").
Replace the append with a proper substitution that uncomments and sets
additionalimagestores = ["/var/lib/shared"].
Verified in a DevWorkspace against the ubi10 image: with a valid vfs
user storage.conf, podman info succeeds.
Co-Authored-By: Claude Code <noreply@anthropic.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: tolusha The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:Approvers can indicate their approval by writing |
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
|
Pull Request UBI 10 images published ✨ Base: quay.io/devfile/base-developer-image:ubi10-pr-272 |
podman >= 5 does not pick up ~/.config/containers/storage.conf on its
own (verified with podman 5.8.2 and 6.1.4): on a clean state it
auto-detects the overlay driver and fails inside DevWorkspaces
("failed to mount overlay for metacopy check: permission denied"),
even though entrypoint.sh has written a valid vfs storage.conf.
Setting CONTAINERS_STORAGE_CONF makes podman read the file the
entrypoint generates (vfs, or overlay with fuse-overlayfs when
/dev/fuse is available), so `podman info` works out of the box in
freshly created workspaces.
Co-Authored-By: Claude Code <noreply@anthropic.com>
Signed-off-by: Anatolii Bazko <abazko@redhat.com>
|
Pull Request images published ✨ Base: quay.io/devfile/base-developer-image:pr-272 |
|
Pull Request UBI 10 images published ✨ Base: quay.io/devfile/base-developer-image:ubi10-pr-272 |
|
Pull Request images published ✨ Base: quay.io/devfile/base-developer-image:pr-272 |
|
Problem
podman info(and any podman use) fails in DevWorkspaces built from these images:Two independent causes:
Corrupt storage.conf (invalid TOML) — the build-time sed in
base/ubi10/Dockerfile/base/ubi9/Dockerfileappended a bare"/var/lib/shared",line after the commented# additionalimagestores = []entry, producing invalid TOML. Podman >= 5 logsFailed to obtain podman configuration: decode configuration ... toml, silently falls back to default settings (overlay driver), and fails inside the workspace where unprivileged overlay mounts are denied.User storage.conf ignored by podman >= 5 —
entrypoint.shcorrectly writes~/.config/containers/storage.conf(driver = "vfs"when/dev/fuseis unavailable), but podman 5.8.2 and 6.1.4 do not pick that file up on their own: on a clean state it auto-detects the overlay driver and fails, regardless of the user config.🤖 Generated with Claude Code