Question: is Podman (Docker-compatible API) in scope for the Linux Docker backend?
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tài liệu
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- docker, rust
- Lĩnh vực
- infrastructure
Hướng nghiên cứu
This is a support-scope question rather than a concrete change, and it reports blockers in the Linux Docker backend at engine/crates/layerfs-sandbox/src/backend/docker/version.rs, backend/docker/topology.rs, and backend/docker/container.rs. First confirm whether Podman support is intended with the maintainers; only then decide whether platform notes should document support or exclusion. Done means an explicit answer and, if appropriate, documentation describing the supported configuration.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Hello, and thank you for LayerFS.
This is a question, not a request: is running the Linux Docker backend against Podman's Docker-compatible API socket something you want to support? I could not find an existing issue or a platform note about it (searched this repository for "podman", "rootless", "seccomp", "Engine API" and "1.48"), so I am asking before assuming anything.
What I tried
Rootless Podman 6.1.4 on x86_64 Linux (btrfs, /dev/fuse present), podman.socket enabled, LayerFS built from main (checked again at 67310175e). I used a static docker CLI client against the Podman socket, LAYERFS_DOCKER pointing at it, and @layerfs/runtime for Init.
What I measured
- The runtime shells out to
docker(api/runtime/src/platform/shared.js), so adockerclient binary has to be onPATH. That works with a static client; I list it only for completeness. - Init as the ordinary user fails with
the Store install runs as user 1000; it must run as user 0, the daemons' user. Under rootless Podman, container root maps to the host user, so the Store file is owned by that user; running Init insidepodman unsharepasses the check. I understand the check exists because the daemon (0:0) opens only a Store it owns. GET /versionon Podman reportsApiVersion1.44. The Sandbox backend (engine/crates/layerfs-sandbox/src/backend/docker/version.rs,OLDEST) refuses anything below 1.48 withUnsupported("Engine API version")before sending a request. The documentation gives the reason (Docker before 28 fails the daemon archive upload withgetent unable to find entry "0:0"), which does not obviously apply to Podman. To see what comes next, I put a small forwarding proxy in front of the socket that only rewrites"ApiVersion":"1.44"to"1.48"; LayerFS itself was unchanged.- With that,
POST /containers/createfails with HTTP 500:{"cause":"file name too long","message":"container create: open {\"defaultAction\":\"SCMP_ACT_ALLOW\",....HostConfig.SecurityOptcarriesseccomp=<inline JSON>(SECCOMPinbackend/docker/topology.rs, written bybackend/docker/container.rs). Docker's Engine accepts the profile text there; Podman's compatibility API treats the value as a file path. As far as I can tell no single string works for both. I did not get past this point, so I do not know whether the container inspection check intopology.rswould accept Podman's answer.
Why I am not proposing to just relax these
Both the version gate and the inline seccomp profile look deliberate: the gate avoids a real failure on older Docker, and the profile blocks user namespaces so a command cannot copy a Workspace mount out of the daemon's namespace. I would not want to weaken either.
The question
Is Podman support in scope for the Docker backend, or would you rather point Podman users at one of the other Sandbox backends being consolidated for 2.0.0? If it is in scope, two directions seem possible, and I do not claim either is small:
- Detect the engine from
GET /version(Components) and use the form that engine accepts for the version check and for passing the seccomp profile. - Let the deployment pass the seccomp profile (inline text or a host path) through a setting instead of a constant.
If it is out of scope, a line in the platform notes saying so would help the next person who tries. Happy to share the proxy and logs if useful.
🤖 Generated with Claude Code
- Ngôn ngữ chính
- Rust
- Star
- 2.1k
- Fork
- 110
- Merge trung bình
- 23 giờ 52 phút
- Pull request đã merge (30 ngày)
- 138
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Ephemeral-AI-Lab/layerfs
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
Ephemeral-AI-Lab/layerfs#689 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Ephemeral-AI-Lab/layerfs#643 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
`branch.publish` accepts a stale base and overwrites `main` (lost update)Có thể đã có người làm @mengmengmengqiang đã nhận hôm nay. Đang mởapi/calls bug core/history
Ephemeral-AI-Lab/layerfs#691 · 1 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 8/100
Ephemeral-AI-Lab/layerfs#684 · 10 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
LayerFS Paper Write in PublicĐang mởdocs
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
Ephemeral-AI-Lab/layerfs#683 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của Ephemeral-AI-Lab/layerfs
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
pop-os/cosmic-settings#2296 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
Maintainer thường phản hồi trong vòng 2 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
jonathanong/no-mistakes#3431 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Eyevinn/open-live-ingest#36 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày