[docker] Stuck in startup

Hello!

I am trying to run OpenWRT in Docker using the rootfs image. When starting the container (with access to the host network adapters) I get the following output:

/etc/preinit: line 6: can't create /sys/devices/system/cpu/microcode/reload: Read-only file system
Press the [f] key and hit [enter] to enter failsafe mode
Press the [1], [2], [3] or [4] key and hit [enter] to select the debug level

The container is running and I can start a shell there, in which many commands work, but some services don't seem to have been started - in particular ubus:

/ # logread 
Failed to connect to ubus

I'm not sure how to start ubus, it seems to look for "usock" which I can't find anywhere:

/ # ubusd
usock: No such file or directory

My dockerfile looks like this:

FROM openwrtorg/rootfs:x86-64-19.07.2

RUN echo 3 > /etc/urandom.seed
RUN mkdir /var/lock

The RUN lines gets rid of some other errors.

I'd appreciate any help with getting this to run, or just pointers about where I can find relevant information!

I am having the same problems here. Did you find a solution?

Unfortunately not. I am still interested in making progress on this

I noticed that /etc/init.d/rcS is missing even though it's referenced by /etc/inittab. Could this be related to the problem or is it expected in OpenWRT? Unfortunately I don't have a device to test with.

I am facing the similar problem of "Failed to connect to ubus". Anyone solved the issue?