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

标签 docker

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/

相关文章:

mysql 5.7 无法允许 CentOS7 上的 docker IP 访问

ssh - 无法使用 Vagrant ssh Docker 提供的容器。 Vagrant ssh 也不起作用

docker - 如何将当前工作目录挂载到 Docker 容器中?

oracle - 无法在 Red Hat 上的 Docker Oracle 中启动 Oracle 监听器

docker - 在 Dockerfile 中使用 env 和 arg 会导致缓存层无效

apache - Docker中的Apache反向代理

docker - 环境变量和 docker-compose

apache - Docker 错误 : Cannot create container for service web: invalid mode

docker - 使用 gRPC 进行容器间通信

playframework - 不要为每个 SBT 子项目发布 docker 镜像