本机环境

简单介绍一下本机环境, 以便出现问题时排查

宿主机硬件:

CPU: Intel Xeon Gold 6138 * 2

Memory: 8 * 32G ECC DDR4 Total: 256G

GPU: Nvidia RTX 4060 8GB

Host System: Windows 11 Pro Workstation

Work System: WSL2-Ubuntu 22.04

.wslconfig 配置文件:

[wsl2]
processors=80
memory=64GB
vmSwitch=LAN
networkingMode=bridged
ipv6=false
dhcp=false

前提条件

WSL2/Ubuntu 系统

安装 Docker

设置apt

sudo apt-get update
sudo apt-get install ca-certificates curl -y
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
echo \
  "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
  $(. /etc/os-release && echo "$VERSION_CODENAME") stable" | \
  sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update

安装Docker

sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin -y

测试Docker

sudo docker run hello-world

看到以下输出, 说明安装成功