How to virtualize in Windows, any Linux distribution, that would be running in the guest OS services was available in your host?

My problem was solved by the Docker, but it doesn't.

Story:
I already have a finished "project" created Docker containers and scripts scanner locally project and its dependencies (simple bash script), it there a repository with Gita pull, Docker starts containers, etc. I even successfully run on Windows in a git bash and miracle - working, in addition to mongodb, which does not take off (although in Linux all the rules), all day killed - took off. (I'll try again, or the issue here is with errors create, MB will understand)

What you want (if you did not get Mongo in Docker):
Raise inside Windows using some virtualization real Linux distro, where I am and I will run Docker, and that would be running Docker containers in virtual reality was prokatyvalis on the host machine and ran it.

Yes, the extra layer, but I'm tired of fighting, and to return to the Linux desktop as I do not want.
It is important just to know is it possible in principle, by what means.
March 23rd 20 at 18:58
3 answers
March 23rd 20 at 19:00
Solution
I'm tired of fighting, and to return to the Linux desktop as I do not want.

Good for you.

It is important just to know is it possible in principle, by what means.

VirtualBox to help you. Importantly, in the network settings select "Virtual host adapter" and dev will be available on the local network as a separate pitch.
All so simple and all my problems will cover a simple VirtualBox? Will I run in the dev nginx, mongodb, and Windows will be able to knock on https://localhost and get response from nginx new path?

I can't believe that can be so simple, thanks, tomorrow will try.
Today I want to sleep and not Wake up for a few days. - Bernardo commented on March 23rd 20 at 19:03
All so simple and all my problems will cover a simple VirtualBox? Will I run in the dev nginx, mongodb, and Windows will be able to knock on https://localhost and get response from nginx new path?

Well, not quite on localhost, and IP address of the virtual machine. - Trent36 commented on March 23rd 20 at 19:06
@Trent36, I actually have there own "domains" in nginx, all sorts of *.dev.test if I will register in the hosts forwards to the IP of the machine will ride the same? - Bernardo commented on March 23rd 20 at 19:09
@BernardoYes ride, though I prefer on the router Static DNS entry to register, it's easier :) - Lolita_Gutmann commented on March 23rd 20 at 19:12
@Lolita_Gutmann, if you're talking about the physical router, then the working machine is not rolling, there is no router (No, well, somewhere in there, but I have access to it) - Bernardo commented on March 23rd 20 at 19:15
@Bernardo, a ride. It will be a full pitch, only virtual. - Trent36 commented on March 23rd 20 at 19:18
@Bernardo, it is about individuals, well, there is no way. :)
I fiercely infuriates to climb in the host file. - Lolita_Gutmann commented on March 23rd 20 at 19:21
March 23rd 20 at 19:02
Solution
that would be running in the guest OS services was available in your host?
For this is the network, and network access.
It's not important where service on the guest machine on the host machine, or in a datacenter in the Netherlands, the principle is the same.

Type of virtualization is also not important - even on the built-in Hyper-V, though VMware.
March 23rd 20 at 19:04
Solution
I see two options:
1 (Good): Vagrant! It's a bomb for you. Create a virtual machine, it ssh all set, a little fiddling with the setup and ready. You have nginx, mongo, all available on a port that you natrite, and you have shared folders with the project. Ie change the file and it immediately changes in Linux.
Cons: is it Worth learning it? I threw myself to learn Docker.

2. (Normal) windose just happy lately, thank you so much Satya Nadel:) From the Microsoft store shake my Ubuntu and all. you have a complete core emulation under Linux, all the commands rothaut, the file system access Windows.
This system is called WSL - esteem.
Cons is not detected. Works stable. Maximum problems with the system such as services, systemctl.

3. (Bad) to Put the second OS - Linux.

4. (?) You can put Docker on Mongu... she will be in the form of interlayers between which data will be stored locally.
In WSL Docker took off, some kociba rights, I couldn't start Docker from root, although the groups I added. Tried on every issue on the issue tracker with similar problems to solve - could not.

To put the second OS - Linux.

No. No. No. Holy. Holy. Holy.

You can put Docker on Mongu

Do not understand. - Bernardo commented on March 23rd 20 at 19:07
@Bernardo, And Docker installed on Windows or on WSL? sudo apt install docker.io or just docker?
Oisca what? Write su in the terminal, then your password and try to raise the Docker. - Tremayne.Sanfor commented on March 23rd 20 at 19:10
@Tremayne.Stoodin the WSL of course, the usual Docker and docker-compose.

Error in rights, not being able to get permission to run Docker without sudo. - Bernardo commented on March 23rd 20 at 19:13

Find more questions by tags VirtualizationSystem administration