You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Before moving Docker WSL make sure to stop the Docker service. Otherwise Docker will crash and you may need to reset it to factory defaults.
42
+
39
43
## FAQ
40
44
41
45
### Default user was switched to root when moving a distro
42
46
43
-
Set your default user inside your distro by adding this to your `/etc/wsl.conf`
47
+
Set your default user inside your distro by adding the following configuration to your `/etc/wsl.conf`.
44
48
45
49
```ini
46
50
[user]
47
51
default=YOUR_USERNAME
48
52
```
49
53
50
-
Then exit your distro, terminate it (`wsl -t YOUR_DISTRO`) and start it again.
54
+
If the file doesn't exist create it manually. Then exit your distro, terminate it (`wsl -t YOUR_DISTRO`) and start it again. For further options see [Microsoft Docs](https://docs.microsoft.com/en-us/windows/wsl/wsl-config#user).
51
55
52
56
### Standard distro switched when moving it
53
57
@@ -56,3 +60,8 @@ Since we need to unregister to import it with the same name, the standard distro
56
60
```sh
57
61
wsl -s YOUR_DISTRO
58
62
```
63
+
64
+
### WSL version was switched when moving distro
65
+
66
+
On import the distro will be registered with the current default WSL version. You can set your default WSL version with `wsl --set-default-version <Version>`.
67
+
When the WSL version was accidentally changed while moving, you can set the version with `wsl --set-version <Distro> <Version>`.
0 commit comments