执行下面的命令即可:
1 | sudo chown -R username path |
比如:
1 | sudo chown -R xubaoduo /home/xubaoduo/project |
在官网下载运行安装打开后出现下面的情况:
以管理员权限运行cmd后, 输入
1 | path - C:\Windows\system32 |
再打开就解决了.
在WSL2的CLI中输入 docker --veriosn
后提示 1
2
3
4
5
6
7
The command 'docker' could not be found in this WSL 2 distro.
We recommend to activate the WSL integration in Docker Desktop settings.
For details about using Docker Desktop with WSL 2, visit:
https://docs.docker.com/go/wsl2/
1 | sudo apt update |
微软商店的 Windows Terminal 确实挺好看的.
ChatGPT以及StackOverflow.
主页的 Settings
中, 选择最下方的
Developer settings
, 在 Personal access token
中就能找到.
看来一个月就过期有点频繁.