docker:install-docker-for-windows-wsl
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| docker:install-docker-for-windows-wsl [2024/09/06 22:32] – created odefta | docker:install-docker-for-windows-wsl [2024/09/06 22:44] (current) – [Automatically Start Ubuntu WSL at Startup without Showing CMD] odefta | ||
|---|---|---|---|
| Line 57: | Line 57: | ||
| wsl docker %* | wsl docker %* | ||
| </ | </ | ||
| + | |||
| + | ==== Automatically Start Ubuntu WSL at Startup without Showing CMD ==== | ||
| + | |||
| + | Open **Notepad** and create a batch script with the following command: | ||
| + | |||
| + | <code batch start_wsl.bat> | ||
| + | @echo off | ||
| + | wsl -d Ubuntu | ||
| + | </ | ||
| + | |||
| + | Save the file as `start_wsl.bat` in the `C: | ||
| + | | ||
| + | Create a shortcut to the batch file. | ||
| + | Right-click on the `start_wsl.bat` file, and choose **Create Shortcut**. \\ | ||
| + | Next, set the shortcut to run minimized: | ||
| + | - Right-click the newly created shortcut, and select **Properties**. | ||
| + | - In the **Shortcut** tab, set **Run** to **Minimized**. | ||
| + | - Click **OK** to save the settings. | ||
| + | |||
| + | Then, move the shortcut to the Windows **Startup** folder: | ||
| + | - Press *Win + R*, and type `shell: | ||
| + | - Move the shortcut you created into this folder. | ||
| + | |||
| + | Now, WSL (Ubuntu) will automatically start whenever Windows boots up, without showing the CMD window. | ||
docker/install-docker-for-windows-wsl.1725661940.txt.gz · Last modified: by odefta
