Skip to content

Commit

Permalink
Update docker_custom.md
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS authored Aug 14, 2023
1 parent 262446e commit 39047d0
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion docs/guide/docker_custom.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,23 @@ rm -rf /root/android_info

## 一键开设windows10系统的容器

- 共享宿主机所有资源,基于docker所以只占用系统的大小,适合多开
- 共享IP,做了docker的NAT映射,可选择是否映射到外网或仅内网
- 设置的win系统默认最多占用为1核2G内存50G硬盘,实际占用看使用情况

**宿主机需要支持嵌套虚拟化**

执行

```
egrep -c '(vmx|svm)' /proc/cpuinfo
```

结果需要大于1

**宿主机的配置至少要有1核2G内存50G硬盘,因为image大小为20G左右,开设的windows容器是1核2G内存20G硬盘,你还要留一些空间给宿主机系统,保守点50G才够**

需要先设置docker切换使用v1版cgroup启动
然后需要先设置docker切换使用v1版cgroup启动

```
sed -i 's/GRUB_CMDLINE_LINUX="\(.*\)"/GRUB_CMDLINE_LINUX="\1 systemd.unified_cgroup_hierarchy=0"/' /etc/default/grub
Expand Down

0 comments on commit 39047d0

Please sign in to comment.