Docker inside VirtualBox

Short: Is it possible to run docker container (microsoft/windowsservercore) inside VirtualBox (Windows 10 Enterprise). Host OS is Windows 10 Professional?

Long: I managed to install and start docker inside VirtualBox (Win10Ent), but when I try to create container I get the following error:

  • package.json file won't persist in docker container
  • Multiple threads inside docker container
  • How to deploy application on JoNaS in a Docker container
  • docker docker0 and container broadcast addresses not set
  • Dockerized app throws read operation timed out error and exits
  • Error while starting tomcat server inside docker centos
  • docker.exe: Error response from daemon: container b9aef43f6b30853bc1f32fc663fdb5155a62f0dcb4be860c23a8b48fefae4d0a encountered an error during CreateContainer: failure in a Windows system call: No hypervisor is present on this system.

    Here is similar question and the conclusion is that VirtualBox does not support nested virtualization, so Docker cannot be run inside of it.

    Having that said what is the option of VirtualBox machine under Settings -> System -> Acceleration -> Hardware Virtualization?
    Can you explain what this Settings tab really means if VirtualBox does not support nested virtualization?

  • lstate error: no such file or directory while building Docker from a custom image with Docker build command
  • Mapreduce job ipc.Client retrying to connect
  • MySQL container: grant access and create a new image
  • Docker-compose build blocked after saying “Building <service>”
  • Can't run Docker container due device mapper error
  • Docker application deployment DEV vs TEST
  • One Solution collect form web for “Docker inside VirtualBox”

    Virtualbox hardware virtualization option is to allow the virtualization capabilities provided by the processor( This does not help with nested virtualization.
    You can run in Docker in Virtualbox as long as there is no hypervisor running inside. That is the case when we run Docker on Linux systems in Virtualbox. With Windows server, they run hyperv as well on top of which they run Windows server where Docker runs. Thats why nested virtualization is needed here. For this case, use something like Vmware player that supports nested virtualization. I use VMware player for cases where nested virtualization is needed. The other option is to use native Windows server that has hyperv.

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.