title: Create Docker containers programmatically with Node.js and exposing their ports appropriatly
body: <p>I am creating a web IDE application where the users can run their code(assuming their code is a website). For every user running the code, their should be created a container containing his code, that should run, and it should expose the ports he is using to the outside world( so he can view the website he created). Is this the right approach(using Docker containers)? And if yes from where do I start? 
  Any help is appreciated.</p>