惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Martin Fowler
Martin Fowler
Blog — PlanetScale
Blog — PlanetScale
Vercel News
Vercel News
L
LangChain Blog
Google DeepMind News
Google DeepMind News
H
Hackread – Cybersecurity News, Data Breaches, AI and More
F
Fortinet All Blogs
The GitHub Blog
The GitHub Blog
Recent Announcements
Recent Announcements
D
DataBreaches.Net
云风的 BLOG
云风的 BLOG
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
A
About on SuperTechFans
博客园_首页
N
Netflix TechBlog - Medium
Y
Y Combinator Blog
Hugging Face - Blog
Hugging Face - Blog
Last Week in AI
Last Week in AI
酷 壳 – CoolShell
酷 壳 – CoolShell
B
Blog
Apple Machine Learning Research
Apple Machine Learning Research
罗磊的独立博客
美团技术团队
V
V2EX

博客园 - 猫猫客服

Goframe 学习笔记 cursor编辑器 ai客服 laravel12 微服务 Claude Code 接口类,需要指定入参类型,出参类型 海量数据查询,es替代方案 数据库设计 php消费者 转载,电商系统多规格 php响应 docker,2024年8月9日 go 微服务 vue3 前端工具 java基础 架构 es学习 简单分表 go 指针
使用wsl,windows自带的linux虚拟机
猫猫客服 · 2024-08-08 · via 博客园 - 猫猫客服

 右键,管理员模式

第一次安装,先更新一下wsl组件

wsl --update

wsl --status 是否为2,不是的话需要设置一下

在windows应用商店直接可以下载

Ubuntu 时,默认情况下并不会设置 root 用户的密码,而是鼓励用户使用 sudo 命令以获得管理员权限。root 账户通常是禁用的,并且没有默认密码。

注册一个子账号,命名随意,或者使用www,密码root

第一次安装完系统:更新并升级软件包

sudo apt update
sudo apt upgrade -y

安装依赖

sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
gnupg \
lsb-release

添加Docker官方的GPG密钥:(需要**上网)

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg

添加docker的源

echo \
"deb [arch=amd64 signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null

更新apt安装包

sudo apt-get update

开始安装

sudo apt-get install docker-ce docker-ce-cli containerd.io

sudo service docker start