I am facing an issue with podman installed in a ubuntu docker container (no docker sock mounted).
root@92081d12aae0:/temp/docker# podman --version
podman version 3.4.4
root@92081d12aae0:/temp/docker#
I am getting the following error while trying to build the container (podman build -t cont:1 .):
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
cannot clone: Invalid argument
Error: cannot re-exec process
runner@92081d12aae0:/temp/docker$ ls
Dockerfile
Tried various solutions provided by the developers:
https://github.com/containers/podman/issues/9137 https://github.com/containers/podman/issues/10864
But unfortunately all have failed:
root@92081d12aae0:/temp/docker# podman build --isolation=chroot --userns-gid-map-group podman --userns-uid-map-user runner -t podman .
WARN[0000] "/" is not a shared mount, this could cause issues or missing mounts with rootless containers
cannot clone: Invalid argument
Error: cannot re-exec process
root@92081d12aae0:/temp/docker#
Permissions as recommended in the above issues:
root@92081d12aae0:/temp/docker# cat /etc/subgid
runner:100000:65536
runner:200000:1001
test:1000:5000
runner:1000:5000
Strace:
strace: test_ptrace_get_syscall_info: PTRACE_TRACEME: Function not implemented
strace: ptrace(PTRACE_TRACEME, ...): Function not implemented
strace: PTRACE_SETOPTIONS: Function not implemented
strace: detach: waitpid(3938): No child processes
strace: Process 3938 detached
Did anyone had luck running podman buld/tag/push from inside a container successfully ?
Thanks in advance