I have a Debian 12 machine and will install docker dektop. For other application which need MS Windows I use VirtualBox to run. But docker desktop use KVM VM and is not running with VirtualBox at the same time/machine.
The solution which are describe is using the docker toolbox. But the link itself goes to docker desktop and is only for windows machine.
How can I run booth together on Debian 12?
Thanks for our help,
Bernd
PS:
I don’t understand why using docker desktop on Linux a VM. It can use the socket to the docker deamon.
I don’t understund why dosn’t exists a solution with VirtualBox. It solve more problems on all OS.
KVM is what most likely to be available on Linux. Relying on any 3rd pary software would be a bad idea and many tools require KVM to run small virtual machines, but Docker Desktop is not just a GUI. The virtual machine is the core part of it. You get the compatible Docker daemon in the VM and everyone using the same Docker Desktop version will have the same Docker CE version in it. When Docker started to support Desktop Desktop on Linux, I didn’t understand why as I always used the engine directly and I never needed the features of Docker Desktop. Since then, Docker Desktop has changed and it makes more sense to use it and will probably will make even more sense in time unless someone needs features that will never be available in Docker Desktop as it would be impossible due to the virtualization.
Docker Toolbox is an old, archived project and Docker Desktop is what should be used on all platforms if not Docker CE directly on Linux.
If you want to share any opinion regarding VirtualBox and KVM with the developers to consider in future releases, I would recommend the roadmap: GitHub · Where software is built
I personally stopped using VirtualBox years ago, but I also rarely run Docker Desktop on Linux so it was never a problem to me, but you would have the same problem on Windows when trying to use HyperV and Virtualbox together. One hypervisor can use the CPUs virtualization features at a time, and if Docker ran on VirtualBox, users would have problem with KVM.
So I think I reacted to PS 2 already, but about PS 1., Docker Desktop itself is an entire Development tool for container based apps and Docker tries to support the same features on each platform. It will probably never be the same everywhere as the platforms will not support the same features, everything in the VM can be the same and how it works in the VM is less likely to be broken by the host.
Okay, so back to your main question. I never tried it, but I found this now
If VirtualBox can use KVM as backend, it should work better. Otherwise you would need to disable VT-x in virtualbox if I remember correctly, but that would make Vitualbox slower.