-1

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

Richard Huxton
  • 21,516
  • 3
  • 39
  • 51
S1c0r4x
  • 47
  • 2
  • 6
  • @BMitch Why did you remove the tags, ubuntu, ecs ? I am running podman on ubuntu inside ecs cluster inside a container ??? Please do me a favour and add the tags back. You are excluding the possibility to find the root cause – S1c0r4x Aug 29 '23 at 13:00
  • This was tagged with "pacman" and I'm not clear how it relates to the video game. It was also tagged with "docker" despite asking about a competing project and not showing any docker commands. There are no details of the ECS environment or how it would relate to the issue. And if it is a ubuntu specific issue, you would need to provide details showing that. The container tag was borderline but you appear to be building an image and not yet at the container stage. For some reason you did not tag your question with the tool being used, "podman" which I added. – BMitch Aug 29 '23 at 13:06
  • @BMitch Mate, I am running podman on a container in ecs fargate. Please add tags back: ecs, container, ubuntu and docker. And don't touch my post as it is ok and not missing info I added the tags to symbolise the technology where I am executing podman. The only thing that is borderline is the fact that I have to discuss with you and explain why I added tags. Because you just removed them without any logical reason. How long should my post be mate, 3 pages so you will not edit my post ??? It's ridiculous – S1c0r4x Aug 29 '23 at 13:11
  • You are right about pacman, it was auto suggestion and didn't not look into it – S1c0r4x Aug 29 '23 at 13:13

0 Answers0