Device CGroup Is not mounted

90 views
Skip to first unread message

Hessamaldin Mohammadi

unread,
Jun 3, 2020, 11:39:05 AM6/3/20
to Android-x86
Hello all,
I am working on a project to install and use docker on android. after installing docker binaries i tried to start it by "dockerd". but there is an error "Device CgroupIs not mounted". I got a few scripts and tried to mount cGoroup. but as the config.gz says 
# CONFIG_CGROUP_PIDS is not set 
# CONFIG_CGROUP_DEVICE is not set"
So i decided to write modules to enable these configurations, but I really don't know if i am in right way or not. How can i enable these parameters for android kernel or how to write proper modules for it?

Also i found a small config command for GRUB to enable Cgroup. I added at the boot time, but nothing changed. 

Another issue is i cannot find the systemd and systemctl. to start services we need them, 


Thanks

Chih-Wei Huang

unread,
Jun 3, 2020, 12:23:16 PM6/3/20
to Android-x86
Hessamaldin Mohammadi <hm...@njit.edu> 於 2020年6月3日 週三 下午11:39寫道:
>
> Hello all,
> I am working on a project to install and use docker on android. after installing docker binaries i tried to start it by "dockerd". but there is an error "Device CgroupIs not mounted". I got a few scripts and tried to mount cGoroup. but as the config.gz says
> # CONFIG_CGROUP_PIDS is not set
> # CONFIG_CGROUP_DEVICE is not set"
> So i decided to write modules to enable these configurations, but I really don't know if i am in right way or not. How can i enable these parameters for android kernel or how to write proper modules for it?

These configs are not used by Android so we didn't enable them.
Refer to: https://android.googlesource.com/kernel/configs/
They are not listed in either android-base.config or android-recommended.config.

You have to rebuild the kernel to enable them if you need them.
See https://www.android-x86.org/documentation/customize_kernel.html

> Also i found a small config command for GRUB to enable Cgroup. I added at the boot time, but nothing changed.
>
> Another issue is i cannot find the systemd and systemctl. to start services we need them,

Android doesn't use that.

You have to learn how to write an Android service
if you want to work with Android.


--
Chih-Wei
Android-x86 project
http://www.android-x86.org
Reply all
Reply to author
Forward
0 new messages