DEV Community

Discussion on: Explain containers like I'm five

Collapse
 
sebassilva profile image
Sebastián Silva • Edited

The idea of using containers is to avoid all the issues you may have when you develop, for example with windows and then you upload your content to a linux based system. There are a lot of things that may go wrong (for example, symboly links, routes, OS specific functions). So you run all your code inside the container, so it runs exactly the same in you computer and in the cloud.
As I see it, is a cross-platform solution for developers.

Collapse
 
mmg profile image
Muhamed G

Thank you for your reply, so isolated environments, but when you said cross-platform, do you mean that if I have a container running Nodejs on a Linux VM, I take the same container and run it on a Windows machine?

Collapse
 
bamabacho profile image
Bobby Gulshan

More or less, yes. The idea, given your example, would be that the VM would be inside the container and easily configurable to run on the Windows VM environment.