yjwong / android_kernel_oneplus_msm8998

Kernel for OnePlus 5/5T supporting Docker (with patches for stuff like Redis)
Other
2 stars 1 forks source link

LineageOS 20 #1

Open shaunmulligan opened 1 year ago

shaunmulligan commented 1 year ago

Hey! I am trying to get docker running in termux on my onePlus5, but starting containers either results in a reboot of the phone or an error like below. I was wondering if you could point to the specific commits in this repo that you used to enable docker. Also would you consider creating a LOS 20.0 branch? I'm also wondering what will go wrong if I just drop your 19.1 branch of the kernel into my build 😄

~ $ docker run hello-world
docker: Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "mqueue" to rootfs at "/dev/mqueue": mount mqueue:/dev/mqueue (via /proc/self/fd/6), flags: 0xe: device or resource busy: unknown.
ERRO[0000] error waiting for container: context canceled 
yjwong commented 1 year ago

Hey @shaunmulligan! I don't recall encountering this particular error while bringing up Docker for the OnePlus 5T. But, it's been a while so I might not fully remember. I do know CONFIG_POSIX_MQUEUE needs to be enabled.

About LOS 20.0 branch, my OnePlus 5T's screen died so I replaced it with a Pixel 6 :/ Though, I'd imagine it'd work if the commits I added were cherry picked atop the new lineageos-20 branch of https://github.com/LineageOS/android_kernel_oneplus_msm8998.

shaunmulligan commented 1 year ago

Ah that's a shame. I tried various things, and got all the docker required + optional settings built in (including CONFIG_POSIX_MQUEUE ) and still had it either causing this issue or rebooting the phone.

I was able to run containers with the option --ipc=host so I suspect there is some issue with namespaces but who knows. I also saw someone else saying they had the reboot problem but when they switched to CGroups v2 it went away, but sadly that didn't work for my phone, so for now I have abandoned getting it running on the oneplus :(