分类 Other-经验分享 下的文章

wsl: 无法配置 networkingMode Nat) (网络,回退到 networkingMode VirtioProxy。


1. 更新 WSL

wsl --update

2. 确保使用的是 WSL 2

wsl -l -v

如果显示为 WSL 1,可以通过以下方式转换:

wsl --set-version <发行版名称> 2

3. 启用相关功能

确保 Hyper-V 和虚拟机平台启用:

dism.exe /online /enable-feature /featurename:VirtualMachinePlatform /all /norestart
dism.exe /online /enable-feature /featurename:Microsoft-Hyper-V-All /all /norestart

然后重启电脑。


Docker部署思源笔记Web版


docker-compose.yml

version: "3.9"
services:
  main:
    image: b3log/siyuan
    command: ['--workspace=/siyuan/workspace', '--accessAuthCode=652511569']
    ports:
      - 6806:6806
    volumes:
      - /mnt/nvme0n1-4/docker/volumes/siyuan:/siyuan/workspace
    restart: unless-stopped
    environment:
      - TZ=${TimeZone}
      - PUID=1000
      - PGID=1000
docker-compose up -d

参考

https://blog.csdn.net/u013564470/article/details/143799184
https://blog.imbhj.com/archives/Ims5hvFf
https://hub.docker.com/r/b3log/siyuan
https://github.com/siyuan-note/siyuan/blob/master/README_zh_CN.md