2015-08-23 39 views
1

我想上使用meteord基本映像我的Mac上运行的泊坞窗容器流星应用程序,但得到一个如何在mac上的docker中运行流星应用程序?

=> You don't have an meteor app to run in this image. 

错误消息时

$ docker run -it -e ROOT_URL=http://localhost -e MONGO_URL=mongodb://192.168.99.101:27017/meteor -v /Users/me/build/bundle -p 8080:80 meteorhacks/meteord:base 

我建流星束通过

$ meteor build --architecture=os.linux.x86_64 ./ 

我可以在mac上使用meteord吗?

回答

4

正如您在base/scripts/run_app.sh#L3-L21中看到的那样,当容器中没有/bundle$BUNDLE_URL/build_app路径时,弹出错误消息。

而且-v /Users/me/build/bundle是不够的容器来声明一个/bundle路径:你需要map it (mount a host directory)

-v /Users/me/build/bundle:/bundle 

单独-v /Users/me/build/bundle声明了一个data volume,它没有安装从主机什么。

相关问题