如何在mac上的docker中运行meteor应用程序?

我正在尝试在我的mac上使用meteord基础映像在Docker容器中运行meteor应用程序,但是得到一个

=> 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 

我build立了meteor束

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

我可以在mac上使用meteord吗?

正如您在base/scripts/run_app.sh#L3-L21中所看到的/build_app ,在容器中没有/bundle$BUNDLE_URL/build_apppath时会popup错误消息。

-v /Users/me/build/bundle不足以在容器中声明一个/bundlepath:你需要映射它(挂载一个主目录) :

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

-v /Users/me/build/bundle单独声明一个数据卷 ,它不会从主机挂载任何东西。