Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Unstable] There is no "Switch to Linux containers..." or "Switch to Windows containers..." option in the menu on Docker Desktop 4.25.0 #13761

Closed
v-mengwe opened this issue Oct 26, 2023 · 20 comments

Comments

@v-mengwe
Copy link

v-mengwe commented Oct 26, 2023

OS Version: Win10 22H2/Win11 23H2
Docker Desktop: 4.25.0(126336)
Regression: 4.24.2

Repro Steps:

  1. Install Docker Desktop 4.25.0.
  2. Right click the Docker Desktop icon.
  3. Check whether there is "Switch to Linux containers..." or "Switch to Windows containers..." option in the menu.

Expect:
There is "Switch to Linux containers..." or "Switch to Windows containers..." option in the menu.
image

Actual:
There is no "Switch to Linux containers..." or "Switch to Windows containers..." option in the menu.
image

More Info:
This is an unstable issue, we verified this issue on 11 machines, 7 of them reproduced.

@gitmgk
Copy link

gitmgk commented Oct 27, 2023

same +1 , Install Docker Desktop 4.25.0 , "Switch to Windows containers" or "Switch to Linux containers" no shown option in the menu.

I am uninstall with Revo Uninstaller Pro : Docker Desktop 4.25.0 , windows registry , all file ... , install Docker Desktop 4.25.0 , both switch OK .

@nogov
Copy link

nogov commented Oct 27, 2023

+1. The same happened after update to 4.25.0

@lkelly93
Copy link

+1

@Florian2145
Copy link

+1. DockerCli.exe is missing since 4.25.0

@Rhynier
Copy link

Rhynier commented Oct 31, 2023

+1 on this issue and DockerCli.exe being missing. Windows 11 Enterprise.

@stevenxi
Copy link

stevenxi commented Nov 1, 2023

+1 v4.25.0

@dmduggan
Copy link

dmduggan commented Nov 1, 2023

Found this workaround in the release notes.

Switch to Windows containers option in the tray menu may not show up on Windows. As a workaround, edit the settings.json file and set "displaySwitchWinLinContainers": true.

The file can be found at $env:APPDATA\Docker\settings.json.

@amrutha95
Copy link

+1 On windows 11

@qtqgyt
Copy link

qtqgyt commented Nov 2, 2023

+1 Windows 11 Pro

@qtqgyt
Copy link

qtqgyt commented Nov 2, 2023

Found a workaround; thanks to @dmduggan (with a few modifications.) As he said, in %APPDATA%\Docker\settings.json, first stop docker; set "displaySwitchWinLinContainers": false; then start docker; stop it again; and set "displaySwitchWinLinContainers": true.
image

@VadymPatuk
Copy link

Found a workaround; thanks to @dmduggan (with a few modifications.) As he said, in %APPDATA%\Docker\settings.json, first stop docker; set "displaySwitchWinLinContainers": false; then start docker; stop it again; and set "displaySwitchWinLinContainers": true. image

Same issue here. Thanks for solution 👍🏻

@JustAnotherLars
Copy link

+1

1 similar comment
@mmbednarz
Copy link

+1

@paulh-utilita
Copy link

+1 for me, even worse is with the workaround for the json file which I was able to update, I then cannot start the docker desktop service again as it doesn't work when dealing with a non-admin user (constant request for admin creds to then start said service) so I guess only way at present would have been to go back to a previous version of Docker Desktop till this is resolved.

@mmbednarz
Copy link

There also doesn't seem to be a working method for changing the engine via the command line right now.
Previously, this was possible using dockecli.exe, which has not been available since version 4.25.

@dmduggan
Copy link

dmduggan commented Nov 6, 2023

A workaround for DockerCli.exe being removed is to used contexts.

PS C:\> docker context ls
NAME                TYPE                DESCRIPTION                               DOCKER ENDPOINT                               KUBERNETES ENDPOINT   ORCHESTRATOR
default *           moby                Current DOCKER_HOST based configuration   npipe:////./pipe/docker_engine
desktop-linux       moby                Docker Desktop                            npipe:////./pipe/dockerDesktopLinuxEngine
desktop-windows     moby                Docker Desktop                            npipe:////./pipe/dockerDesktopWindowsEngine

There are three ways to take advantage of this:

  1. Use docker context use to select the context.
  2. Use the DOCKER_CONTEXT environment variable to select the context.
  3. Use the docker endpoint from above directly using the DOCKER_HOST environment variable.

I think you'll have to manually switch to the other OS once using the settings.json workaround from my previous comment. After that you should be able to switch back and forth (I personally use option 2).

@rostacik
Copy link

rostacik commented Nov 8, 2023

I tried with Podman on my box and it did the job so maybe until fixed will work for you too

@mmbednarz
Copy link

Changing docker context works for me for my scenario. Thanks.

@lorenrh
Copy link
Member

lorenrh commented Nov 14, 2023

We've released a new version of Docker Desktop containing a fix for this issue, you can see the release notes! I'll close this issue for now, but if the issue persists, feel free to open a new issue!

@lorenrh lorenrh closed this as completed Nov 14, 2023
@ttwmf
Copy link

ttwmf commented Dec 7, 2023

in %APPDATA%\Docker\settings.json, set "useWindowsContainers": false.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests