Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rawhide (crun): rootless(?): podman build: error creating container #3938

Closed
edsantiago opened this issue Sep 4, 2019 · 3 comments · Fixed by #3944
Closed

rawhide (crun): rootless(?): podman build: error creating container #3938

edsantiago opened this issue Sep 4, 2019 · 3 comments · Fixed by #3944
Assignees
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.

Comments

@edsantiago
Copy link
Collaborator

On current rawhide with crun:

$ cat Dockerfile
FROM alpine
RUN /bin/true
$ podman build --format=docker .
STEP 1: FROM alpine
STEP 2: RUN /bin/true
2019-09-04T16:00:31.000904355Z: sync socket closed
error running container: error creating container for [/bin/sh -c /bin/true]: : exit status 1
Error: error building at STEP "RUN /bin/true": error while running runtime: exit status 1
$ echo $?
125

I can't check root because podman-root is 100% broken (rhbz1748214).

With --log-level=debug:

...
DEBU[0000] Running ["/usr/bin/crun" "create" "--bundle" "/tmp/buildah302112233" "--pid-file" "/tmp/buildah302112233/pid" "--no-new-keyring" "--console-socket" "/tmp/buildah302112233/console.sock" "buildah-buildah302112233"]
2019-09-04T16:02:19.000002978Z: sync socket closed

podman-1.5.2-0.46.dev.git1d8a940.fc32.x86_64
crun-0.7-2.fc31.x86_64
package runc is not installed

@rhatdan
Copy link
Member

rhatdan commented Sep 4, 2019

Buildah has hard coded runc into itself. We have just fixed this, and need to vendor an updated buildah into podman to fix it on F31 and Rawhide.

giuseppe added a commit to giuseppe/libpod that referenced this issue Sep 5, 2019
Pass down the cgroup manager to use to buildah.

Closes: containers#3938

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@giuseppe
Copy link
Member

giuseppe commented Sep 5, 2019

I can't remember what patch exactly, but there is a fix in crun 0.8 that is needed for working with Buildah.

Also Buildah doesn't uses systemd cgroups (it always uses cgroupfs), so we need something like:

$ podman build --runtime-flag 'systemd' .

I've opened a PR to take care of the second issue: #3944

giuseppe added a commit to giuseppe/libpod that referenced this issue Sep 5, 2019
Pass down the cgroup manager to use to buildah.

Closes: containers#3938

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
giuseppe added a commit to giuseppe/libpod that referenced this issue Sep 5, 2019
Pass down the cgroup manager to use to buildah.

Closes: containers#3938

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
giuseppe added a commit to giuseppe/libpod that referenced this issue Sep 5, 2019
Pass down the cgroup manager to use to buildah.

Closes: containers#3938

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
giuseppe added a commit to giuseppe/libpod that referenced this issue Sep 6, 2019
Pass down the cgroup manager to use to buildah.

Closes: containers#3938

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
giuseppe added a commit to giuseppe/libpod that referenced this issue Sep 6, 2019
Pass down the cgroup manager to use to buildah.

Closes: containers#3938

Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
@edsantiago
Copy link
Collaborator Author

Confirmed fixed in podman-1.5.2-0.63.dev.git511b071.fc32.x86_64, thank you

@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Sep 23, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants