RunKit 如何制作他们的虚拟服务器?

How does RunKit make their virtual servers?

有很多网站提供云编码sush,如Cloud9repl.it。他们必须使用服务器虚拟化技术。例如,Clould9 的工作区由 Docker Ubuntu 容器提供支持。每个工作区都是一个完全独立的 VM (see details)。

我想知道是否有其他技术可以制作沙盒环境。比如RunKit好像有个轻解:

It runs a completely standard copy of Node.js on a virtual server created just for you. Every one of npm's 300,000+ packages are pre-installed, so try it out

有人知道 RunKit 是如何做到这一点的吗?

它使用 linux 个容器,目前由 Docker 提供支持。

您可以在“Tonic is now RunKit - A Part of Stripe! " (see discussion)

中查看更多内容

we attacked the problem of time traveling debugging not at the application level, but directly on the OS by using the bleeding edge virtualization tools of CRIU on top of Docker.

详情在“Time Traveling in Node.js Notebooks

we were able to take a different approach thanks to an ambitious open source project called CRIU (which stands for checkpoint and restore in user space).
The name says it all. CRIU aims to give you the same checkpointing capability for a process tree that virtual machines give you for an entire computer.
This is no small task: CRIU incorporates a lot of lessons learned from earlier attempts at similar functionality, and years of discussion and work with the Linux kernel team. The most common use case of CRIU is to allow migrating containers from one computer to another

The next step was to get CRIU working well with Docker

该设置的一部分是 being opened-source, as mentioned in this HackerNews feed