-
Issue DescriptionI'm trying to port linuxbrew@0c8ca793436f:~$ podman ps
cannot clone: Permission denied
Error: cannot re-exec process I get a slightly different error with ╰─λ podman run -it homebrew/brew
linuxbrew@c542e361e05b:~$ { sudo apt-get update && sudo apt-get install -y podman;}>/dev/null
sudo: unable to send audit message: Operation not permitted
sudo: unable to send audit message: Operation not permitted
debconf: delaying package configuration, since apt-utils is not installed
linuxbrew@c542e361e05b:~$ podman ps
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
cannot clone: Permission denied
Error: cannot re-exec process
linuxbrew@c542e361e05b:~$ podman version
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
cannot clone: Permission denied
Error: cannot re-exec process
linuxbrew@c542e361e05b:~$ Steps to reproduce the issueSteps to reproduce the issue
Also
Describe the results you receivedI tried with two different versions, the one from linuxbrew@138c19987d63:~$ podman --version
podman version 4.5.1
linuxbrew@138c19987d63:~$ podman ps
cannot clone: Permission denied
Error: cannot re-exec process
linuxbrew@138c19987d63:~$ sudo podman ps
sudo: unable to send audit message: Operation not permitted
sudo: podman: command not found
linuxbrew@138c19987d63:~$ linuxbrew@9f9951271860:~$ podman --version
podman version 3.4.4
linuxbrew@9f9951271860:~$ podman ps
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
cannot clone: Permission denied
Error: cannot re-exec process
linuxbrew@9f9951271860:~$ sudo podman ps
sudo: unable to send audit message: Operation not permitted
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
cannot clone: Permission denied
Error: cannot re-exec process
linuxbrew@9f9951271860:~$ Describe the results you expectedosalbahr@vclvm176-210:~$ podman ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES podman info outputI tried with two different versions, the one from `brew` and the one from `apt`:
linuxbrew@138c19987d63:~$ podman --version
podman version 4.5.1
linuxbrew@138c19987d63:~$ podman info
cannot clone: Permission denied
Error: cannot re-exec process
linuxbrew@138c19987d63:~$ sudo podman info
sudo: unable to send audit message: Operation not permitted
sudo: podman: command not found
linuxbrew@138c19987d63:~$ linuxbrew@9f9951271860:~$ podman --version
podman version 3.4.4
linuxbrew@9f9951271860:~$ podman info
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
cannot clone: Permission denied
Error: cannot re-exec process
linuxbrew@9f9951271860:~$ sudo podman info
sudo: unable to send audit message: Operation not permitted
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
cannot clone: Permission denied
Error: cannot re-exec process
linuxbrew@9f9951271860:~$ Podman in a containerYes Privileged Or RootlessRootless Upstream Latest ReleaseYes Additional environment detailshttps://hub.docker.com/r/homebrew/brew $ podman run -it homebrew/brew
...
linuxbrew@138c19987d63:~$ uname -a
Linux 138c19987d63 6.3.6-200.fc38.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 5 15:45:04 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux
linuxbrew@138c19987d63:~$ neofetch
.-/+oossssoo+/-. linuxbrew@138c19987d63
`:+ssssssssssssssssss+:` ----------------------
-+ssssssssssssssssssyyssss+- OS: Ubuntu 22.04.2 LTS x86_64
.ossssssssssssssssssdMMMNysssso. Host: KVM/QEMU (Standard PC (Q35 + ICH9, 2009) pc-q35-8.0)
/ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 6.3.6-200.fc38.x86_64
+ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 1 hour, 49 mins
/sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 211 (dpkg), 133 (brew)
.ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 5.1.16
+sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 1280x800
ossyNMMMNyMMhsssssssssssssshmmmhssssssso CPU: 06/8e (1) @ 2.303GHz
ossyNMMMNyMMhsssssssssssssshmmmhssssssso Memory: 497MiB / 1953MiB
+sssshhhyNMMNyssssssssssssyNMMMysssssss+
.ssssssssdMMMNhsssssssssshNMMMdssssssss.
/sssssssshNMMMyhhyyyyhdNMMMNhssssssss/
+sssssssssdmydMMMMMMMMddddyssssssss+
/ssssssssssshdmNNNNmyNMMMMhssssss/
.ossssssssssssssssssdMMMNysssso.
-+sssssssssssssssssyyyssss+-
`:+ssssssssssssssssss+:`
.-/+oossssoo+/-.
linuxbrew@138c19987d63:~$ brew config
HOMEBREW_VERSION: 4.0.26-7-ga41a1fd
ORIGIN: https://github.com/Homebrew/brew
HEAD: a41a1fd782daf95a1ecdfcbcfe6127ca027c4d37
Last commit: 63 minutes ago
Core tap origin: https://github.com/Homebrew/homebrew-core
Core tap HEAD: cf3cb18796664100f963873bfd2d603d80491b74
Core tap last commit: 19 hours ago
Core tap branch: master
Core tap JSON: 28 Jun 11:45 UTC
HOMEBREW_PREFIX: /home/linuxbrew/.linuxbrew
HOMEBREW_CASK_OPTS: []
HOMEBREW_MAKE_JOBS: 1
Homebrew Ruby: 2.6.10 => /home/linuxbrew/.linuxbrew/Homebrew/Library/Homebrew/vendor/portable-ruby/2.6.10_1/bin/ruby
CPU: single-core 64-bit skylake
Clang: N/A
Git: 2.41.0 => /bin/git
Curl: 7.81.0 => /bin/curl
Kernel: Linux 6.3.6-200.fc38.x86_64 x86_64 GNU/Linux
OS: Unknown
Host glibc: 2.35
/usr/bin/gcc: 11.3.0
/usr/bin/ruby: N/A
glibc: N/A
gcc@11: N/A
gcc: N/A
xorg: N/A
linuxbrew@138c19987d63:~$ Additional informationThe main issue is this CI workflow test that I'm trying to replicate: https://github.com/Homebrew/homebrew-core/actions/runs/5395788250/jobs/9798696108?pr=135178 |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This is not a bug, you cannot run podman inside a unprivileged container. Nested containers are complicated, see https://www.redhat.com/sysadmin/podman-inside-container for more info. |
Beta Was this translation helpful? Give feedback.
This is not a bug, you cannot run podman inside a unprivileged container. Nested containers are complicated, see https://www.redhat.com/sysadmin/podman-inside-container for more info.