feat: accept the long-form volumes type: image mount#77
Merged
Conversation
podman rejects a relative image subpath ("must be an absolute path")
even though docker compose config accepts one; volume subpath is
unaffected since podman resolves it against the volume root.
lesnik512
added a commit
that referenced
this pull request
Jul 17, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds
type: imageas a fourth long-form volume type — mounting an image's rootfs attarget, emitted aspodman run --mount type=image,source=<ref>,target=<path>[,subpath=<abs>]. Closes the last podman-expressible long-form volume gap (theimagedeferred-parser item indeferred.md).Design:
planning/changes/2026-07-17.03-image-mount-type.md.Measured behaviors (docker v5.1.2 + podman 6.0.1)
sourcerequired — the image reference; podman refuses a sourceless image mount (must set source and destination), Docker allows it optional → a rule-two narrowing (likebind).read_onlyaccepted but not emitted — image mounts are inherently read-only; podman rejects bothreadonlyandrwoptions, so norois emitted (Docker accepts and ignoresread_only).image: {subpath}must be absolute — podman requires an absolute image subpath (bin→ "must be an absolute path"), unlike avolumesubpath (relative, resolved against the volume root). A${VAR}subpath is carved out. Volume subpath handling is unchanged.sourceis an image ref, not a path → noproject_dirresolution; a mismatched sub-map is refused.Verification
just lint-ci,just check-planningclean.type: imagecorpus doc isboth-accept(dedicated assertion).test -e /img/bin/busybox).subpathfalse green (docker accepts, podman rejects at run time), fixed here as a rule-two narrowing.🤖 Generated with Claude Code