How to install docker in Windows VM on a Ubuntu host? - docker

I am trying to install a docker on a Windows VM (windows server 2016).
This VM is on an Ubuntu 16.04 host. This VM is created using VirtualBox (independent from docker or docker-machine).
When I try to install docker on the windows VM, it says "virtualization must be enabled in BIOS". When I check whether virtualization has been enabled in the windows task manager, it says virtualization is not capable. I have already enabled Hyper-V in the VM
The question is: is it possible to install docker inside a Windows VM on an Ubuntu host?

I think it is not possible to run Docker on Windows VM hosted on Ubuntu. Your Windows VM is already a virtual machine. Installing docker on this Windows requires Hyper-V which is an additiona layer of virtualization. This is not possible.

Related

Docker Windows Vs VM Ubuntu Docker

I am fairly new and want to learn Docker and Containers, specifically web app architecture. My question is what path should I go to, if I just install Docker Desktop on Windows or just install a VM and run an ubuntu then the docker?
Thanks...

Why can I not run docker and virtualbox

I had run into a problem, I want to run Virtualbox on my main machine and also run docker and android studio.
The problem is that Android sudio and docker need Hyper-v to be enabled to run while Virtualbox need Hyper-v to be disabled to run a machine.
I am running Windows 10 with a ryzen cpu. Any sugestion ?
You can use Docker Toolbox to run a docker host inside Virtualbox

Setting up docker container on remote windows server VM

I'm currently trying to set up a Selenium Grid in a docker container which will be hosted on a remote Windows Virtual machine. I have installed docker and I seem to be able to create a container that will run Selenium. But I have no idea how to make Docker use my windows VM as the host.
I have an IP address for the VM, but I cannot find a command that will allow me to specify where I want my grid hosted. Does anyone how to do this in docker?
I am using
Windows 10
Docker Desktop for Windows 10
Mobaxterm to RDP into my Windows 10 VM
Git bash to run docker commands

Equivalent to boot2docker ip for new docker for windows10/hyperV

I have used docker toolbox in the past on windows with Virtualbox and boot2docker. Now I installed new docker windows and boot2docker is not recognized anymore when typing
boot2docker ip
What command should I use now for Docker Windows ?
It should be localhost. Docker for Windows (as well as Docker for Mac) are doing some additional magic proxying to automatically forward ports from the host to the IP address of the VM so you shouldn't need to know the IP.
However, there are some caveats on Windows. Check out https://docs.docker.com/docker-for-windows/troubleshoot/#limitations-of-windows-containers-for-localhost-and-published-ports for more information if you are using Windows containers.

Docker inside Windows guest virtual machine

I use Debian Jessie as a VirtualBox host.
I have a Windows 7 virtual machine guest, what I use for development purposes.
I want to install docker.
In order to install docker for Windows I need Boot2docker.exe.
Boot2docker itself is a VirtualBox virual machine.
It requires enable VT-x.
That doesn't seem to work.
VirtualBox error message:
VT-x is not available (VERR_VMX_NO_VMX)
E_FAIL (0x80004005)
Console
IConsole {8ab7c520-2442-4b66-8d74-4ff1e195d2b6}
You want to run Docker client on your Windows development VM. Now you want to create a boot2docker linux VM inside the windows VM to run the docker deamon on. I think it's better to run the docker deamon on your Debian host system and let the docker client talk to the host system.
See
https://docs.docker.com/engine/docker-overview/#the-docker-client

Resources