Config Kernel Modules cd /usr/src/linux make menuconfig Necessary Modules CONFIG_CGROUP_CPUACCT CONFIG_CGROUP_DEVICE CONFIG_CGROUP_FREEZER CONFIG_CGROUP_SCHED CONFIG_CPUSETS CONFIG_MEMCG CONFIG_CGROUP_NET_PRIO CONFIG_CGROUP_PIDS CONFIG_MEMCG_SWAP CONFIG_BLK_CGROUP CONFIG_BLK_DEV_THROTTLING CONFIG_CGROUP_PERF CONFIG_CGROUP_HUGETLB CONFIG_NET_CLS_CGROUP CONFIG_CFS_BANDWIDTH CONFIG_FAIR_GROUP_SCHED CONFIG_IPVLAN CONFIG_DUMMY Add Kernel Configuration General setup *-- C**ontrol Group support ---> [*] Memory controller [*] IO controller [*] CPU controller ---> --- CPU controller [*] Group […]
1. 配置文件: /etc/docker/daemon.json 2. 格式:json 一般来说,新装的docker没有该文件,vi或者其它编辑器直接添加以下内容: { "dns": ["223.5.5.5", "223.6.6.6"] } 3. 验证 docker run --rm -it alpine nslookup baidu.com 在输出中Server行出现刚刚配置的DNS,表示配置成功。