總結一下就是,安裝桌面版的docker,提示說沒有WSL2,按照微軟的檔案進行安裝,然后安裝Linux的子系統,從微軟商店去安裝,因為默認安裝到了c盤,所以進行資料的遷移,同時docker的資料同樣需要遷移,遷移到別的位置,.wlsconfig可以掌管配置,然后就可以正常使用,
windows用戶目錄下

[wsl2]
memory=2GB
swap=0
# 初識配置
https://docs.microsoft.com/en-us/windows/wsl/install-win10#step-1---enable-the-windows-subsystem-for-linux
https://blog.csdn.net/magefreehome/article/details/107885573?utm_medium=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant_t0.none-task-blog-BlogCommendFromBaidu-1.control
https://www.cnblogs.com/yanglang/p/13518449.html
# 換源
https://blog.csdn.net/weixin_39305029/article/details/105014150
# 連接鏡像
https://blog.csdn.net/u014062332/article/details/95333615?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1.control
docker pull dorowu/ubuntu-desktop-lxde-vnc
docker run -p 6080:80 -p 5900:5900 -e VNC_PASSWORD=VNC123456 -v /dev/shm:/dev/shm dorowu/ubuntu-desktop-lxde-vnc
https://hub.docker.com/r/dorowu/ubuntu-desktop-lxde-vnc
# 安裝子系統
https://zhuanlan.zhihu.com/p/302961875
# 子系統需要遷移到別的磁盤
https://learnku.com/articles/46234
# docker資料遷移到別的磁盤 https://www.cnblogs.com/yanglang/p/13518449.html
轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/239145.html
標籤:其他
