View previous topic :: View next topic |
Author |
Message |
guyuming Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 19 Nov 2020 Posts: 253
|
Posted: Wed Dec 02, 2020 4:13 am Post subject: how to make changes kernel configuration required by docker |
|
|
I installed docker and run the kernel configuration check mentioned in https://wiki.gentoo.org/wiki/Docker#Kernel
Check result says:
info: reading kernel config from /proc/config.gz ,,,
...
- CONFIG_NF_NAT_IPV4: missing
...
When i open make menuconfig, i see cascade of choice items, but how can i figure out which choice item in menuconfig corresponds to the missing key CONFIG_NF_NAT_IPV4 ?
And i tried edit the .config file directly, appending missing keys at the end, and run make, i saw a warning the CONFIG_MEMCG_SWAP_ENABLED=m i added was inappropriate shortly after the make begin. So, i Ctrl+C to stop the make.
The i check the .config file again to find that all the keys i added manually are no there anymore.
And i open the .config.old file to find out that the keys i added manually are there.
So, how can i reconfigure the kernel as required by docker install? |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31467 Location: here
|
Posted: Wed Dec 02, 2020 6:38 am Post subject: |
|
|
In menuconfig you can type '/' and put NF_NAT_IPV4 for search where is a config, also tells you if it has some dependency on some other config. _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
guyuming Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 19 Nov 2020 Posts: 253
|
Posted: Wed Dec 02, 2020 1:30 pm Post subject: |
|
|
Thanks!
fedeliallalinea wrote: | In menuconfig you can type '/' and put NF_NAT_IPV4 for search where is a config, also tells you if it has some dependency on some other config. |
I tried with NF_NAT_IPV4, but it says "no match found", how can this be?
And i did find two suggested missing items and added them into the kernel. I am make the kernel now. After make install and reboot, i will try run the checker again, and post here all the missing items that return "no match found" in menuconfig search. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31467 Location: here
|
Posted: Wed Dec 02, 2020 1:51 pm Post subject: |
|
|
See bug #685340 _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jaglover Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/179708169458f2999e44e26.gif)
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
guyuming Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 19 Nov 2020 Posts: 253
|
Posted: Thu Dec 03, 2020 9:11 am Post subject: |
|
|
Jaglover wrote: | guyuming,
what version of docker are you installing? |
$ docker --version
Docker version 19.03.13, build 4484c46d9d
$ uname -r
5.4.72-gentoo-x86_64 |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
fedeliallalinea Administrator
![Administrator Administrator](/images/ranks/rank-admin.gif)
![](images/avatars/161653968057192eb39329f.jpg)
Joined: 08 Mar 2003 Posts: 31467 Location: here
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
guyuming Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 19 Nov 2020 Posts: 253
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|