Home » Quick Guide: Enabling “Switch to Linux/Windows Containers” in Docker Desktop

Quick Guide: Enabling “Switch to Linux/Windows Containers” in Docker Desktop

0 comment 4 views

If the “Switch to Linux containers…” or “Switch to Windows containers…” option is missing in the Docker Desktop menu, you can enable it by editing the settings.json file. Follow these steps:

  1. Open PowerShell or Command Prompt.
  2. Navigate to the Docker settings directory by entering the following command:
   cd $env:APPDATA\Docker
  1. Open the settings.json file in a text editor of your choice.
  2. Look for the line that contains "displaySwitchWinLinContainers" and set its value to true. If the line does not exist, add it as follows:
   "displaySwitchWinLinContainers": true
  1. Save the changes and restart Docker Desktop.

After these steps, the “Switch to Linux containers…” and “Switch to Windows containers…” options should appear in the menu.


References:
Link 1 – https://github.com/docker/for-win/issues/13761
Link 2 – https://docs.docker.com/desktop/release-notes/#4250

Leave a Comment