You should be able to build OCI images #1

Open
opened 2024-01-04 18:11:11 -07:00 by neale · 1 comment
Owner

Seems like rootless podman would let you build OCI images inside a big-builder image.

Seems like rootless podman would let you build OCI images inside a big-builder image.
Author
Owner

Here's the last thing I tried, and how it failed:

sweetums:~# podman exec -it -u 0 builder-betty bash
root@c6e1967b652e:/app# cat > /etc/subgid
builder:100000:65535
root@c6e1967b652e:/app# cat > /etc/subuid
builder:100000:65535
root@c6e1967b652e:/app# exit
sweetums:~# podman exec -it builder-betty bash
builder@c6e1967b652e:~$ podman run --rm -it alpine
ERRO[0000] running `/usr/bin/newuidmap 38 0 1000 1 1 100000 65535`: newuidmap: write to uid_map failed: Operation not permitted
Error: cannot set up namespace using "/usr/bin/newuidmap": exit status 1

I should note that podman in podman works great on alpine. But arduino doesn't.

Here's the last thing I tried, and how it failed: ```sh sweetums:~# podman exec -it -u 0 builder-betty bash root@c6e1967b652e:/app# cat > /etc/subgid builder:100000:65535 root@c6e1967b652e:/app# cat > /etc/subuid builder:100000:65535 root@c6e1967b652e:/app# exit sweetums:~# podman exec -it builder-betty bash builder@c6e1967b652e:~$ podman run --rm -it alpine ERRO[0000] running `/usr/bin/newuidmap 38 0 1000 1 1 100000 65535`: newuidmap: write to uid_map failed: Operation not permitted Error: cannot set up namespace using "/usr/bin/newuidmap": exit status 1 ``` I should note that podman in podman works great on alpine. But arduino doesn't.
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: neale/big-builder#1
No description provided.