podman: Cannot use podman inside lxc with nesting enabled

Hi. Im trying to use podman inside an Alpine Linux container but it cannot start any container. I get the following message. As far as I know this should be possible. Docker works and I am trying to migrate from it.

Packages involved:

Host: Proxmox Ve 7.0 lxc: lxc-pve/stable,now 4.0.9-4 amd64 [instalado, automático] lxcfs/stable,now 4.0.8-pve2 amd64 [instalado, automático] pve-lxc-syscalld/stable,now 1.0.0-1 amd64 [instalado, automático]

systemd: systemd 247 (247.3-6) +PAM +AUDIT +SELINUX +IMA +APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +ZSTD +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=unified

Guest: Alpine Linux 3.14 openrc (OpenRC [LXC]) 0.43.3.4753eda10f


podman run --rm hello-world
WARN[0000] Failed to add conmon to cgroupfs sandbox cgroup: error creating cgroup path /libpod_parent/conmon: write /sys/fs/cgroup/cgroup.subtree_control: operation not supported 
Error: OCI runtime error: writing file `/sys/fs/cgroup/cgroup.subtree_control`: Not supported


``

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 20 (6 by maintainers)

Most upvoted comments

got works by setting pids_limit=0 according this issue: https://github.com/containers/podman/issues/9410#issuecomment-785840320