Comments (5)
please provide the full command you are running.
That error happens with --cgroup-parent=$PARENT
and $PARENT
is not a systemd slice (i.e. it doesn't have a .slice
suffix).
$ podman run --rm --cgroup-parent foo alpine true
Error: did not receive systemd slice as cgroup parent when using systemd to manage cgroups: invalid argument
from podman.
please provide the full command you are running.
That error happens with
--cgroup-parent=$PARENT
and$PARENT
is not a systemd slice (i.e. it doesn't have a.slice
suffix).$ podman run --rm --cgroup-parent foo alpine true Error: did not receive systemd slice as cgroup parent when using systemd to manage cgroups: invalid argument
I can reproduce it with a simple Incorrect, see next commentpodman run --rm -it alpine:edge
from podman.
please provide the full command you are running.
That error happens with--cgroup-parent=$PARENT
and$PARENT
is not a systemd slice (i.e. it doesn't have a.slice
suffix).$ podman run --rm --cgroup-parent foo alpine true Error: did not receive systemd slice as cgroup parent when using systemd to manage cgroups: invalid argument
I can reproduce it with a simple
podman run --rm -it alpine:edge
Actually, no. Only in one pod of mine it seems to occur. I had just rebooted after making this post so my last comment was from memory, but I was able to check again now since it started occuring again:
[glitch@syndra ~]$ podman run --rm -it alpine:edge ash
/ #
[glitch@syndra ~]$ podman run --rm -it --pod glitch alpine:edge ash
Error: did not receive systemd slice as cgroup parent when using systemd to manage cgroups: invalid argument
Edit: Creating a new pod now and then running a container with --pod test
works. Only this one pod does not work as expected.
[jens@syndra ~]$ sudo cat /etc/systemd/system/glitch-pod.service
[Unit]
Description=Create glitch pod
[Service]
Type=oneshot
User=glitch
Group=glitch
ExecStartPre=-/usr/bin/podman pod stop glitch
ExecStartPre=-/usr/bin/podman pod rm -f glitch
ExecStart=/usr/bin/podman pod create --name glitch -p 127.0.0.1:8080:80 -p 127.0.0.1:4443:443 -p 29418:29418
ExecStop=/usr/bin/podman pod rm -f glitch
ExecReload=/usr/bin/podman pod stop glitch
Restart=no
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
This is how the pod in question is created.
from podman.
[jens@syndra ~]$ sudo cat /etc/systemd/system/glitch-pod.service
[Unit]
Description=Create glitch pod[Service]
Type=oneshot
User=glitch
Group=glitch
ExecStartPre=-/usr/bin/podman pod stop glitch
ExecStartPre=-/usr/bin/podman pod rm -f glitch
ExecStart=/usr/bin/podman pod create --name glitch -p 127.0.0.1:8080:80 -p 127.0.0.1:4443:443 -p 29418:29418
ExecStop=/usr/bin/podman pod rm -f glitch
ExecReload=/usr/bin/podman pod stop glitch
Restart=no
RemainAfterExit=yes[Install]
WantedBy=multi-user.target
if you run with User=
there is no systemd user session active for that user, so it ends up using the cgroupfs backend.
You can install the .service
file under $HOME/.config/systemd/user/glitch-pod.service
and avoid the User=
attribute
from podman.
if you run with
User=
there is no systemd user session active for that user, so it ends up using the cgroupfs backend.
Ahh, thanks so much for this hint! I'll move to user units then :)
from podman.
Related Issues (20)
- Permission denied extracting to etc.defaults/shadow within a bind mount on MacOS, works with Docker HOT 6
- Changing system time during pod creation causes init containers to run in incorrect order HOT 2
- unlinkat directory not empty on commit (rootless) HOT 5
- podman tries to make user-executable directory world-executable (rootless) HOT 3
- [Podman man] --no-hosts and base_hosts_file semantics HOT 1
- remote: usability: "diff" with no args makes nonsensical suggestion (--latest)
- Containerfile.in not automatically pre-processed HOT 2
- Swagger docs mismatch for /images/{name}/push and libpod endpoint HOT 2
- newuidmap Fails with “Operation not permitted” When Running Podman Inside amd64 Podman container on macOS with Rosetta HOT 5
- podman : Depends: containers-common (>= 4:1) but it is not going to be installed HOT 1
- cannot remove images on MacOS HOT 5
- Podman v5 no longer builds Dockerfiles with build args used as --platform in FROM instruction HOT 4
- quadlet: add Container-spec StopSignal mapping to podman --stop-signal HOT 1
- podman system renumber fails if a volume exists
- Podman doesn't use a local image in `FROM` in Dockerfile/Containerfile HOT 2
- `podman-catatonit` cannot be installed in a UBI9 based container image HOT 1
- macOS vm virtiofs concurrency issue HOT 8
- Podman creates a rundir with insufficient permissions HOT 6
- podman build -o type=tar,dest=- mixes tar and messages HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from podman.