Closed acmel closed 4 years ago
@acmel thanks for the issue. My first guess is the --layers
option. By default, Podman uses --layers=true
. Could you try:
' podman build --layers=false -t my_image .`
If you've time, it would also be interesting to see if buildah with layers with true fails buildah bud --layers=true -t my_image .
But all that said, I'm not sure why --layers
would trip up this Dockerfile, it seems rather straight forward.
[perfbuilder@five b]$ podman images | grep my_image [perfbuilder@five b]$ podman build --layers=false -t my_image . STEP 1: FROM fedora:32 STEP 2: RUN dnf -y install make 2020-09-02T01:20:31.000195784Z: sd-bus call: Permission denied error running container: error creating container for [/bin/sh -c dnf -y install make]: : exit status 1 Error: error building at STEP "RUN dnf -y install make": error while running runtime: exit status 1 [perfbuilder@five b]$ cat Dockerfile FROM fedora:32 RUN dnf -y install make [perfbuilder@five b]$
Could you try podman build --cgroup-manager=cgroupfs -t my_image .
issue #6368 has encountered with the same error sd-bus call: Permission denied
Yeah, that did the trick, see below.
Now please hand hold me, am I missing some kernel config option? There is this cgroup transition, I'm probably missing something really obvious here :-\
perfbuilder@five b]$ podman build --cgroup-manager=cgroupfs -t my_image .
STEP 1: FROM fedora:32
STEP 2: RUN dnf -y install make
Fedora 32 openh264 (From Cisco) - x86_64 3.1 kB/s | 5.1 kB 00:01
Fedora Modular 32 - x86_64 1.2 MB/s | 4.9 MB 00:04
Fedora Modular 32 - x86_64 - Updates 2.7 MB/s | 3.7 MB 00:01
Fedora 32 - x86_64 - Updates 2.6 MB/s | 22 MB 00:08
Fedora 32 - x86_64 3.8 MB/s | 70 MB 00:18
Installing: make x86_64 1:4.2.1-16.fc32 fedora 494 k Installing dependencies: gc x86_64 8.0.4-3.fc32 fedora 113 k guile22 x86_64 2.2.6-4.fc32 fedora 6.6 M libtool-ltdl x86_64 2.4.6-33.fc32 fedora 37 k
Install 4 Packages
Total 217 kB/s | 7.2 MB 00:34
Running transaction check
Transaction check succeeded.
Running transaction test
Transaction test succeeded.
Running transaction
Preparing : 1/1
Installing : libtool-ltdl-2.4.6-33.fc32.x86_64 1/4
Installing : gc-8.0.4-3.fc32.x86_64 2/4
Installing : guile22-2.2.6-4.fc32.x86_64 3/4
Running scriptlet: guile22-2.2.6-4.fc32.x86_64 3/4
Installing : make-1:4.2.1-16.fc32.x86_64 4/4
Running scriptlet: make-1:4.2.1-16.fc32.x86_64 4/4
Verifying : gc-8.0.4-3.fc32.x86_64 1/4
Verifying : guile22-2.2.6-4.fc32.x86_64 2/4
Verifying : libtool-ltdl-2.4.6-33.fc32.x86_64 3/4
Verifying : make-1:4.2.1-16.fc32.x86_64 4/4
Installed: gc-8.0.4-3.fc32.x86_64 guile22-2.2.6-4.fc32.x86_64 libtool-ltdl-2.4.6-33.fc32.x86_64 make-1:4.2.1-16.fc32.x86_64
Complete! STEP 3: COMMIT my_image --> 7e9ce9a742e 7e9ce9a742e3d6f0843a5204014818b5bce294653741fbab4a4d14a2b7d82487 [perfbuilder@five b]$
@acmel thanks for checking, In the /etc/containers/containers.conf
or /etc/containers/libpod.conf
, is the cgroup_manager = "systemd"
configured?
I couldn't find any containers.conf or libpod.conf in this system, its a fedora:32 with:
[perfbuilder@five b]$ rpm -q podman podman-2.0.5-1.fc32.x86_64 [perfbuilder@five b]$ rpm -qa | grep libpod [perfbuilder@five b]
I take that back, I didn't find it in /etc, it is at:
[perfbuilder@five b]$ grep cgroup_manager /usr/share/containers/containers.conf
[perfbuilder@five b]$
So if I change in that file it to:
$ grep cgroup_manager /usr/share/containers/containers.conf cgroup_manager = "cgroupfs" $
I works, equivalent to using --cgroup-manager=cgroupfs, thanks!
Is this a BUG REPORT or FEATURE REQUEST? (leave only one on its own line)
/kind bug
Description
Fails:
podman build -t my_image .
Works:
buildah bud -t my_image .
Then I can go and use my_image with 'podman run', etc.
Steps to reproduce the issue:
[perfbuilder@five fedora]$ mkdir b [perfbuilder@five fedora]$ cd b [perfbuilder@five b]$ vim Dockerfile [perfbuilder@five b]$ cat Dockerfile FROM fedora:32 RUN dnf -y install make [perfbuilder@five b]$ podman build -t my_image . STEP 1: FROM fedora:32 STEP 2: RUN dnf -y install make 2020-09-01T20:48:12.000711043Z: sd-bus call: Permission denied error running container: error creating container for [/bin/sh -c dnf -y install make]: : exit status 1 Error: error building at STEP "RUN dnf -y install make": error while running runtime: exit status 1 [perfbuilder@five b]$ [perfbuilder@five b]$ [perfbuilder@five b]$ [perfbuilder@five b]$ buildah bud -t my_image . STEP 1: FROM fedora:32 STEP 2: RUN dnf -y install make Fedora 32 openh264 (From Cisco) - x86_64 3.2 kB/s | 5.1 kB 00:01
Fedora Modular 32 - x86_64 3.5 MB/s | 4.9 MB 00:01
Fedora Modular 32 - x86_64 - Updates 1.9 MB/s | 3.7 MB 00:01
Fedora 32 - x86_64 - Updates 2.6 MB/s | 22 MB 00:08
Fedora 32 - x86_64 4.8 MB/s | 70 MB 00:14
Dependencies resolved.