docker / for-win

Bug reports for Docker Desktop for Windows
https://www.docker.com/products/docker#/windows
1.85k stars 285 forks source link

"dockercli -SwitchDaemon" doesn't reflect in the settings UI #1269

Open haniamr opened 6 years ago

haniamr commented 6 years ago

BUG REPORT INFORMATION

Description If I run dockercli -SwitchDaemon in order to switch Docker from Windows to Linux, the UI still thinks it's on Windows containers and doesn't show Linux-specific settings (i.e. Shared drives)

Steps to reproduce the issue:

  1. Make sure Docker is using Windows containers
  2. Run dockercli -SwitchDaemon
  3. Open Docker settings

Describe the results you received: Linux-specific settings are not visible (i.e. Shared drives, Advanced, Network, etc.)

Describe the results you expected: The UI should reflect to the correct mode if switching via the command line

Output of docker version:

Client:
 Version:      17.09.0-ce
 API version:  1.32
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:40:09 2017
 OS/Arch:      windows/amd64

Server:
 Version:      17.09.0-ce
 API version:  1.32 (minimum version 1.24)
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:50:27 2017
 OS/Arch:      windows/amd64
 Experimental: true

Output of docker info:

Containers: 0
 Running: 0
 Paused: 0
 Stopped: 0
Images: 10
Server Version: 17.09.0-ce
Storage Driver: windowsfilter
 Windows:
Logging Driver: json-file
Plugins:
 Volume: local
 Network: ics l2bridge l2tunnel nat null overlay transparent
 Log: awslogs etwlogs fluentd json-file logentries splunk syslog
Swarm: inactive
Default Isolation: hyperv
Kernel Version: 10.0 15063 (15063.0.amd64fre.rs2_release.170317-1834)
Operating System: Windows 10 Enterprise
OSType: windows
Architecture: x86_64
CPUs: 12
Total Memory: 11.72GiB
Name: haniamr-dd
ID: VKX7:TIEF:FEKC:UDQZ:F2GF:V7KL:T64I:Y4FI:O37P:QONK:ADVQ:6EMW
Docker Root Dir: C:\ProgramData\Docker
Debug Mode (client): false
Debug Mode (server): true
 File Descriptors: -1
 Goroutines: 23
 System Time: 2017-10-30T11:09:06.4061186-07:00
 EventsListeners: 0
Registry: https://index.docker.io/v1/
Experimental: true
Insecure Registries:
 127.0.0.0/8
Live Restore Enabled: false
jasonbivins commented 6 years ago

Hi @haniamr I've tried to repro this in a couple of environments now but I havent been able to.

Do you have the Docker GUI open when you make the switch? Just to make sure I'm using the same commands - I'm using this in Powershell - is this what you're using? & 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon

haniamr commented 6 years ago

Hi @jasonbivins

Yes, that's the command I'm trying: "c:\Program Files\Docker\Docker\DockerCli.exe" -SwitchDaemon I don't have the GUI open when executing the command. Which version have you tried on? I have the latest stable and I can still repro the issue:

Client:
 Version:      17.09.0-ce
 API version:  1.32
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:40:09 2017
 OS/Arch:      windows/amd64

Server:
 Version:      17.09.0-ce
 API version:  1.32 (minimum version 1.24)
 Go version:   go1.8.3
 Git commit:   afdb6d4
 Built:        Tue Sep 26 22:50:27 2017
 OS/Arch:      windows/amd64
 Experimental: true
docker-robott commented 6 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

abergs commented 6 years ago

/remove-lifecycle stale

This still happens! I could repro, latest stable as well.

docker-robott commented 6 years ago

Issues go stale after 90d of inactivity. Mark the issue as fresh with /remove-lifecycle stale comment. Stale issues will be closed after an additional 30d of inactivity.

Prevent issues from auto-closing with an /lifecycle frozen comment.

If this issue is safe to close now please do so.

Send feedback to Docker Community Slack channels #docker-for-mac or #docker-for-windows. /lifecycle stale

KirkMunro commented 4 years ago

/remove-lifecycle stale

This issue happens for me as well. Windows 10 (10.0.17763), latest Docker Desktop release. I can only get the tray icon UI to reflect changes made using dockercli.exe by issuing commands to shut down Docker Desktop and then relaunching it.

KirkMunro commented 4 years ago

/reopen

KirkMunro commented 4 years ago

/lifecycle frozen

KirkMunro commented 4 years ago

Just to add to this, I get the same experience if I invoke .\dockercli.exe -SwitchLinuxEngine or .\dockercli.exe -SwitchWindowsEngine. The tray icon just doesn't pick up on the changes until I shut down Docker Desktop and restart it, but that shouldn't be necessary because I can do this on the fly using the tray without restarting it.