Docker Desktop上手

开/关基于虚拟化的安全性

bcdedit /set hypervisorlaunchtype auto
bcdedit /set hypervisorlaunchtype off
win+R: msinfo32

启动或关闭windows功能

勾选wsl 虚拟机支持

【如需安装linux】

【Win11-WSL2优雅安装方式】 :

这里可以学习真正使用wsl2装系统,按linux的方式装docker,在vscode插件中管理

Docker-desktop配置修改

Resources:修改Disk image location

docker engine config:

{
"builder": {
"gc": {
"defaultKeepStorage": "20GB",
"enabled": true
}
},
"experimental": false,
"features": {
"buildkit": true
},
"registry-mirrors": [
"http://mirror.azure.cn/",
"http://mirrors.ustc.edu.cn/",
"https://0c105db5188026850f80c001def654a0.mirror.swr.myhuaweicloud.com",
"https://4tqbfyyn.mirror.aliyuncs.com",
"https://5tqw56kt.mirror.aliyuncs.com",
"https://docker.1panel.live",
"https://docker.chenby.cn",
"https://docker.ckyl.me/",
"https://docker.hpcloud.cloud",
"https://docker.m.daocloud.io",
"https://docker.m.daocloud.io",
"https://dockerhub.timeweb.cloud",
"https://hub.rat.dev/",
"https://hub.uuuadc.top",
"https://huecker.io",
"https://noohub.ru",
"https://registry.cn-shenzhen.aliyuncs.com",
"https://docker.anyhub.us.kg",
"https://docker.awsl9527.cn",
"https://docker.ckyl.me",
"https://docker.fxxk.dedyn.io",
"https://docker.itelyou.cf",
"https://docker.m.daocloud.io",
"https://docker.mirrors.sjtug.sjtu.edu.cn",
"https://docker.mirrors.ustc.edu.cn",
"https://dockerhub.icu",
"https://dockerhub.jobcher.com",
"https://dockerhub.timeweb.cloud",
"https://hub-mirror.c.163.com",
"https://huecker.io",
"https://mirror.baidubce.com",
"https://mirror.ccs.tencentyun.com",
"https://noohub.ru",
"https://registry.cn-hangzhou.aliyuncs.com",
"https://registry.docker-cn.com"
]
}

右下角启用终端

发表评论