Docker image does not work on rocky 9.6 (but on Fedora 42, Ubuntu 20.04/22.04/.24.04)

Hi all,

I have a docker image which uses ubuntu 16.04 and runs a very old bitbake (v1.30) from yocto krogoth-15.0.0). It works flawlessly on several machines using different OS (Fedora 42, Ubuntu 20.04 and 22.04 and 24.04). But recently I added a new machine with rocky 9 and it just does not work.

My Dockerfile:

FROM ubuntu:16.04

ARG DEBIAN_FRONTEND=noninteractive
ENV TZ=Europe/Vienna

RUN apt-get update && apt-get install -y gawk wget git-core diffstat unzip texinfo gcc-multilib \
    build-essential chrpath socat libsdl1.2-dev xterm netcat curl

RUN apt-get install -y python3 python cpio
RUN apt-get install -y tmux

ARG USER
ARG userid
ARG groupid

RUN groupadd --non-unique --gid $groupid $USER
RUN useradd --non-unique --uid $userid --gid $groupid --create-home $USER
RUN adduser ${USER} staff

I build and run it as follows:

docker build   --build-arg USER=dev   --build-arg userid=1000   --build-arg groupid=1000   -t yocto .
docker run --rm -it yocto   bash

It also tried with these options:

 --privileged   --ipc=host   --pid=host   --network=host 

To reproduce run inside the docker

curl -L https://github.com/yoctoproject/poky/archive/refs/tags/krogoth-15.0.0.tar.gz -o poky.tar.gz
tar xzfv poky.tar.gz
cd poky-krogoth-15.0.0/
source oe-init-build-env
bitbake

Output:

WARNING: Timeout while attempting to communicate with bitbake server
WARNING: Timeout while attempting to communicate with bitbake server
WARNING: Timeout while attempting to communicate with bitbake server
WARNING: Timeout while attempting to communicate with bitbake server
ERROR: Gave up; Too many tries: timeout while attempting to communicate with bitbake server

Any help is greatly appreciated.

Edit: when using podman instead of docker everything works as expected