Your Windows build number: Microsoft Windows [Version 10.0.18932.1000] What you're doing and what's happening: > wsl.exe -d my-wsl2-distro What's wrong / what should be happening instead: It starts as root, even after my-wsl2-distro.exe ...
default = DemoUser # Set a command to run when a new WSL instance launches. This example starts the Docker container service. [boot] command = service docker start 2.3.2 .wslconfig 这一部分可以配置的东西比较多,建议直接看官方文档,这里只给出官方文档配置的样例: # Settings apply across all Li...
$PATH environment variables.[interop] enabled =falseappendWindowsPath =false# Set the user when launching a distribution with WSL.[user] default = DemoUser# Set a command to run when a new WSL instance launches. This example starts the Docker container service.[boot]command= service docker ...
2[automount]34# Set to true will automount fixed drives (C:/ or D:/) with DrvFs under the root directory set above. Set to false means drives won't be mounted automatically, but need to be mounted manually or with fstab.5enabled =true67# Sets the directory where fixed drives will be...
Every Docker container starts with a simple text file containing instructions for how to build the Docker container image. The Docker file automates the process of Docker image creation. It's essentially a list of commands that Docker Engine will run in order to assemble the image. ...
$PATH environment variables.[interop] enabled =falseappendWindowsPath =false# Set the user when launching a distribution with WSL.[user] default = DemoUser# Set a command to run when a new WSL instance launches. This example starts the Docker container service.[boot]command= service docker ...
$PATH environment variables.[interop] enabled =falseappendWindowsPath =false# Set the user when launching a distribution with WSL.[user] default = DemoUser# Set a command to run when a new WSL instance launches. This example starts the Docker container service.[boot]command= service docker ...
This example starts the Docker container service. [boot] command = service docker start .wslconfig 的配置设置 .wslconfig 文件全局配置使用 WSL 2 运行的所有 Linux 分发版的设置。(对于按分发配置,请参阅 wsl.conf) 。 有关存储 .wslconfig 文件的位置的信息,请参阅 .wslconfig 。 备注 全局.wslconf...
$PATH environment variables.[interop] enabled =falseappendWindowsPath =false# Set the user when launching a distribution with WSL.[user] default = DemoUser# Set a command to run when a new WSL instance launches. This example starts the Docker container service.[boot]command= service docker ...
# Limits VM memory to use no more than 4 GB, this can be set as whole numbers using GB or MB memory=4GB # Sets the VM to use two virtual processors processors=2 # Turn on/off default connection to bind WSL 2 localhost to Windows localhost ; default is true ...