最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

podman build inside container - Stack Overflow

programmeradmin1浏览0评论

inside a container I've been trying to run:

podman run --privileged quay.io/podman/stable podman build -t almaci .

Every attempt I've made has ended with an error like this:

+ podman run --privileged quay.io/podman/stable podman build -t almaci . time="2025-02-08T23:15:40Z" level=error msg="cannot find UID/GID for user laminar: no subuid ranges found for user \"laminar\" in /etc/subuid - check rootless mode in man pages." time="2025-02-08T23:15:40Z" level=warning msg="Using rootless single mapping into the namespace. This might break some images. Check /etc/subuid and /etc/subgid for adding sub*ids if not using a network user" Trying to pull quay.io/podman/stable:latest... Getting image source signatures Copying blob sha256:09aac3d8655bb3d8c24309bcf42707fc48cfde1c33f27bcb437601d667640c64 Copying blob sha256:346f0b703e0c7bee8b1e16f0f9164636a3d8b62c94525c7323a91710d7fd73ef Copying blob sha256:11588a88ecb59c56d78b709dfc499936112518d23229e1ebc3e2f5da4f986362 Copying blob sha256:d2cb3076ac894883f165dea34bc6cdc298181f284f95369e1c4f9f508a95731c Copying blob sha256:ffba6c6f1e27307afbd27dc9e796b62a32d9851ed573f9c69bc18bb80d9aea68 Copying blob sha256:5d21aae6669031015d2d64f7ad4f97861ae13a737afe621ac8c72fe17329a68b Copying blob sha256:a983f9a82e560da69515cccee699b4245251c410e793f8b333179bd86283cedb Copying blob sha256:7bf43e3bd372842d258b15e17edf5be04cec95d088e4f3892ccb83e78f3c445f Copying blob sha256:d32585152a8cad2a00fa0cb066f57d145da64ecabca7f276d09e203f37580ea6 Copying blob sha256:5773d274b578041c8c2c121937abc1f839a536ffc17e66163f557ee8bd8c04a4 Error: copying system image from manifest list: writing blob: adding layer with blob "sha256:d2cb3076ac894883f165dea34bc6cdc298181f284f95369e1c4f9f508a95731c"/""/"sha256:31b6ddcaa750fe9f36599bb20d49ad2e903b7ad7dcbc930c8de05ac486d393f4": unpacking failed (error: exit status 1; output: potentially insufficient UIDs or GIDs available in user namespace (requested 0:12 for /var/spool/mail): Check /etc/subuid and /etc/subgid if configured locally and run "podman system migrate": lchown /var/spool/mail: invalid argument) [laminar] sending SIGHUP to adopted child processes [laminar] sending SIGKILL to pid 25

I've attempted to alter the subu/gid files for my account/root/laminar. Adding laminar to subg/uid gave this error:

time="2025-02-09T01:06:59Z" level=error msg="running /usr/bin/newuidmap 23 0 998 1 1 100000 65536: newuidmap: write to uid_map failed: Operation not permitted\n" Error: cannot set up namespace using "/usr/bin/newuidmap": should have setuid or have filecaps setuid: exit status 1

Host machine is a physical one running almalinux 9.5. All other podman functionality so far has ran as expected.

Can anyone advise on a container setup that allows you to build and push containers images from inside a running container.

发布评论

评论列表(0)

  1. 暂无评论