Record and install Docker for Windows reference materials

To sum up, install the desktop version of docker, and it says that there is no WSL2, and install it according to Microsoft's documentation. Then install the Linux subsystem and install it from the Microsoft Store. Because it is installed to the c drive by default, the data is migrated. At the same time, docker data also needs to be migrated. Migrate to another location, .wlsconfig can control the configuration, and then it can be used normally.

Windows user directory

[wsl2]
memory=2GB
swap=0

# First understanding of configuration
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
# Change source
https://blog.csdn.net/weixin_39305029/article/details/105014150
# Connect mirror
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


# Install the subsystem
https://zhuanlan.zhihu.com/p/302961875


# Subsystem needs to be migrated to another disk
https://learnku.com/articles/46234

 

# Migrate docker data to another disk https://www.cnblogs.com/yanglang/p/13518449.html

 

 

Guess you like

Origin blog.csdn.net/weixin_43906799/article/details/111559706