Saturday, October 08, 2016

Windows containers AND VirtualBox

VirtualBox and Windows Containers - best setup for using both

https://stefanscherer.github.io/run-linux-and-windows-containers-on-windows-10/


You may not be able to run VirtualBox and Windows Containers simultaneosly on a Windows machine yet, but you can toggle back and forth between Hyper-V and KVM.

Code to toggle HyperV

bcdedit /set hypervisorlaunchtype off

Reboot windows. Hyper-V is disabled now. If you want to enable it, then run this command:

CODE: SELECT ALL   EXPAND VIEW
bcdedit /set hypervisorlaunchtype auto


Windows PowerShell
Copyright (C) 2016 Microsoft Corporation. All rights reserved.

PS C:\WINDOWS\system32> bcdedit /set hypervisorlaunchtype off
The operation completed successfully.

Code to toggle Os/Arch in windows cotainers: run linux in windows container

PS C:\WINDOWS\system32> docker version
Client:
 Version:      1.12.2-rc1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   45bed2c
 Built:        Tue Sep 27 23:38:15 2016
 OS/Arch:      windows/amd64
 Experimental: true

Server:
 Version:      1.12.2-rc1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   45bed2c
 Built:        Tue Sep 27 23:38:15 2016
 OS/Arch:      linux/amd64
 Experimental: true
PS C:\WINDOWS\system32> & 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon
PS C:\WINDOWS\system32> dockerd --unregister-service
PS C:\WINDOWS\system32> & 'C:\Program Files\Docker\Docker\DockerCli.exe' -SwitchDaemon
PS C:\WINDOWS\system32> dockerd --register-service
PS C:\WINDOWS\system32> docker version
Client:
 Version:      1.12.2-rc1
 API version:  1.24
 Go version:   go1.6.3
 Git commit:   45bed2c
 Built:        Tue Sep 27 23:38:15 2016
 OS/Arch:      windows/amd64
 Experimental: true

Server:
 Version:      1.12.2-cs2-ws-beta-rc1
 API version:  1.25
 Go version:   go1.7.1
 Git commit:   62d9ff9
 Built:        Fri Sep 23 20:50:29 2016
 OS/Arch:      windows/amd64
PS C:\WINDOWS\system32>

No comments: