User Tools

Site Tools


docker:install-docker-for-windows-wsl

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
docker:install-docker-for-windows-wsl [2024/09/07 01:41] odeftadocker:install-docker-for-windows-wsl [2024/09/07 01:44] (current) – [Automatically Start Ubuntu WSL at Startup without Showing CMD] odefta
Line 60: Line 60:
 ==== Automatically Start Ubuntu WSL at Startup without Showing CMD ==== ==== Automatically Start Ubuntu WSL at Startup without Showing CMD ====
  
-To automatically start WSL (specifically the Ubuntu distribution) during Windows startup without showing the CMD window, follow these steps:+Open **Notepad** and create a batch script with the following command   
  
-  - Open **Notepad** and create a batch script with the following command: +<code batch start_wsl.bat> 
-    ``` +@echo off 
-    @echo off +wsl -d Ubuntu 
-    wsl -d Ubuntu +</code>
-    ``` +
-    - This command launches the **Ubuntu** distribution in WSL. Replace `Ubuntu` with your distribution name if necessary.+
  
-  - Save the file as `start_wsl.bat` in the `C:\Windows` directory+Save the file as `start_wsl.bat` in the `C:\Windows` directory.
-    - In **Notepad**, click **File > Save As...**. +
-    - Choose **C:\Windows** as the location. +
-    - Name the file `start_wsl.bat`. +
-    - In the **Save as type** dropdown, select **All Files** (important!).+
          
-  - Create a shortcut to the batch file: +Create a shortcut to the batch file. 
-    Right-click on the `start_wsl.bat` file, and choose **Create Shortcut**. +Right-click on the `start_wsl.bat` file, and choose **Create Shortcut**. \\  
- +Next, set the shortcut to run minimized:
-  - Set the shortcut to run minimized:+
     - Right-click the newly created shortcut, and select **Properties**.     - Right-click the newly created shortcut, and select **Properties**.
     - In the **Shortcut** tab, set **Run** to **Minimized**.     - In the **Shortcut** tab, set **Run** to **Minimized**.
     - Click **OK** to save the settings.     - Click **OK** to save the settings.
  
-  - Move the shortcut to the Windows **Startup** folder:+Then, move the shortcut to the Windows **Startup** folder:
     - Press *Win + R*, and type `shell:startup`, then hit **Enter**. This opens the **Startup** folder.     - Press *Win + R*, and type `shell:startup`, then hit **Enter**. This opens the **Startup** folder.
     - Move the shortcut you created into this folder.     - Move the shortcut you created into this folder.
docker/install-docker-for-windows-wsl.1725662505.txt.gz · Last modified: 2024/09/07 01:41 by odefta