Docker可以用于“dockerizing” iojs或nodejs(例如,在它们之间快速切换)吗?
而且,对于使用docker化任何应用程序而言,不必使用整个操作系统的镜像(ubuntu),对吗?
最佳答案
Can be Docker used for "dockerizing" iojs or nodejs (for, for example, quick switching between them)?
当然,如文章“Up and running with io.js and Docker”所示,基于iojs image。
And, for dockerizing any app it's not necessary using image of whole OS (ubuntu), right?
仅当您的应用程序依赖操作系统文件系统而不是(通过静态链接)依赖于Linux主机内核时
例如,使用Go(golang.org)编译的应用程序可以在空容器中运行(scratch container,请参见“Building Minimal Docker Containers for Go Applications”)
关于docker - 使用docker快速切换iojs版本,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30015229/