编程知识 cdmana.com

记录安装Docker for Windows参考资料

总结一下就是,安装桌面版的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

 

 

版权声明
本文为[osc_ixxabuu0]所创,转载请带上原文链接,感谢
https://my.oschina.net/u/4294880/blog/4836861

Scroll to Top