尝试使用meteorhacks在docker中运行流星应用程序时出错:meteord

我刚刚开始玩docker.从
meteorhacks:meteord开始尝试方法1时,我得到了以下错误

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

这是我在创建基本计数器演示流星应用程序后所做的.

 docker build -t app .
Sending build context to Docker daemon 11.75 MB
Step 0 : FROM meteorhacks/meteord:base
 ---> 528baf8d4263
Step 1 : MAINTAINER MeteorHacks Pvt Ltd.
 ---> Running in 6d7e7eb6ebce
 ---> d69fefdbeb70
Removing intermediate container 6d7e7eb6ebce
Step 2 : ONBUILD copy ./ /app
 ---> Running in e68618104dfa
 ---> c253ae966ea1
Removing intermediate container e68618104dfa
Step 3 : ONBUILD run bash $METEORD_DIR/on_build.sh
 ---> Running in e51e557c2b05
 ---> a6a6a1be9147
Removing intermediate container e51e557c2b05
Successfully built a6a6a1be9147

然后(我已经启动了mongo容器暴露27017并抓住内部ip地址171.17.0.1)

docker run -d \
    -e ROOT_URL=http://localhost:3000 \
    -e MONGO_URL=mongodb://172.17.0.1:27017/ \
    -e MONGO_OPLOG_URL=mongodb://172.17.0.1:27017/ \
    -p 8080:80 \
    app 

我这样做时出错,然后运行docker logs< container id>

有人可以指导我吗?

提前致谢.

最佳答案 此错误来自
scripts/run_app.sh,即
ENTRYPOINT of the base Dockerfile.

它检查是否存在:

> / bundle文件夹,或
> / built_app,或
> $BUNDLE_URL

如果您的计数器演示Dockerfile没有填充/ bundle或/ built_app文件夹,那么您需要确保定义ENV BUNDLE_URL with the right url.

点赞