buildah: Cannot build images with podman build 1.8.0 in Docker containers
Description
podman build
fails with:
error running container: error creating container for [/bin/sh -c sh /root/install_deps.sh]: cannot open sd-bus: No such file or directory
The container is not systemd-as-pid1, so enabling the journal doesn’t work. Passing --events-backend=file
also doesn’t avoid the issue.
Full output (including dep resolution for podman itself): https://gitlab.kitware.com/ben.boeckel/cmb-superbuild/-/jobs/4816230
Steps to reproduce the issue:
- Use gitlab-ci to run a container (
fedora:31
in my case) - Try and use
podman build
Describe the results you received:
Failure to connect to sd-bus.
Describe the results you expected:
A built image
Output of podman version
if reporting a podman build
issue:
Version: 1.8.0
RemoteAPI Version: 1
Go Version: go1.13.6
OS/Arch: linux/amd64
Output of cat /etc/*release
:
Fedora release 31 (Thirty One)
NAME=Fedora
VERSION="31 (Thirty One)"
ID=fedora
VERSION_ID=31
VERSION_CODENAME=""
PLATFORM_ID="platform:f31"
PRETTY_NAME="Fedora 31 (Thirty One)"
ANSI_COLOR="0;34"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:31"
HOME_URL="https://fedoraproject.org/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora/f31/system-administrators-guide/"
SUPPORT_URL="https://fedoraproject.org/wiki/Communicating_and_getting_help"
BUG_REPORT_URL="https://bugzilla.redhat.com/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=31
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=31
PRIVACY_POLICY_URL="https://fedoraproject.org/wiki/Legal:PrivacyPolicy"
Fedora release 31 (Thirty One)
Fedora release 31 (Thirty One)
Output of uname -a
:
Taken from the host of the builder in question.
Linux dovim 5.3.11-100.fc29.x86_64 #1 SMP Tue Nov 12 20:41:25 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux
Output of cat /etc/containers/storage.conf
:
Fedora default configuration.
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 42 (14 by maintainers)
Links to this issue
Commits related to this issue
- Document needed tweaks for podman-in-docker I'm fulfilling my promise from https://github.com/ansible-community/molecule/issues/2714#issuecomment-643718078 by documenting specific stuff learned from ... — committed to yajo/molecule by yajo 4 years ago
- Document needed tweaks for podman-in-docker (#2762) I'm fulfilling my promise from https://github.com/ansible-community/molecule/issues/2714#issuecomment-643718078 by documenting specific stuff learn... — committed to ansible/molecule by yajo 4 years ago
🎉 🚀 Made it work, thanks!
I didn’t even need
--device /dev/fuse
.I also modified
--storage-opt overlay.mount_program=/usr/bin/fuse-overlayfs
It works on Gitlab CI too: https://gitlab.com/yajoman/rpi_cooler/-/jobs/582567308 ❤️
--cgroup-manager=cgroupfs
worked for me (no need to mess with sssd settings). Thanks.@mathstuf I think this is the same issue a: https://bugzilla.redhat.com/show_bug.cgi?id=1768954
From that, if you can, please try:
@giuseppe any other thoughts?
@rhatdan can you link to the docs?
overlayfs->overlay overlayfs driver does not exists.
Hmm. I’m seeing it work within Docker images on a Fedora 31 host (executed via Docker due to needing the Docker socket for
gitlab-runner
).There’s no 1.8.0 image available (due to this), but if I manually update podman inside the container to 1.8.0, it works!