[tracker-oci-images/sam/podman] Avoid podman trying to talk to systemd when running in a container
- From: Sam Thursfield <sthursfield src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [tracker-oci-images/sam/podman] Avoid podman trying to talk to systemd when running in a container
- Date: Wed, 11 Dec 2019 10:10:36 +0000 (UTC)
commit 414df0c2474a24f36239db92a007bfce98750312
Author: Sam Thursfield <sam afuera me uk>
Date: Wed Dec 11 11:08:50 2019 +0100
Avoid podman trying to talk to systemd when running in a container
The build works for me locally, but fails in gitlab.gnome.org because
of this error:
STEP 3: RUN /usr/bin/sh /root/prepare.sh && /usr/bin/sh /root/cleanup.sh
error running container: error creating container for [/bin/sh -c /usr/bin/sh /root/prepare.sh &&
/usr/bin/sh /root/cleanup.sh]: time="2019-12-11T10:06:29Z" level=error msg="systemd cgroup flag passed, but
systemd support for managing cgroups is not available"
systemd cgroup flag passed, but systemd support for managing cgroups is not available
: exit status 1
Following https://github.com/containers/libpod/issues/1534, let's try
passing the `--cgroup-manager=cgroupfs` flag.
.gitlab-ci.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml
index c4e8104..dbfb370 100644
--- a/.gitlab-ci.yml
+++ b/.gitlab-ci.yml
@@ -20,7 +20,7 @@ variables:
# using the vfs driver, and this causes errors.
- sed -i '/^mountopt =.*/d' /etc/containers/storage.conf
- - podman build --format=docker --pull -f ${DOCKERFILE} -t ${IMAGE} ${CONTEXT_DIR}
+ - podman build --cgroup-manager=cgroupfs --format=docker --pull -f ${DOCKERFILE} -t ${IMAGE}
${CONTEXT_DIR}
- podman push ${IMAGE}
# Expects $ARCH variable which should be the architexcture of the image ex. x86_64
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]