gpt4 book ai didi

docker - 使用docker快速切换iojs版本

转载 作者:行者123 更新时间:2023-12-02 21:28:43 25 4
gpt4 key购买 nike

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/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com