2016-04-18 78 views
1

我有麻烦运行下面的泊坞窗,撰写(1.7构建0d7bf73 ,撰写文件格式版本1)命令行工作正常(泊坞窗1.10.3):搬运工,撰写使用管道命令

docker run --rm --entrypoint="/bin/bash" node:4 -c "node gridd.js -t | ./node_modules/bunyan/bin/bunyan" 

我的搬运工撰写:

grid: 
    image: node:4-slim 
    entrypoint: /bin/bash 
    command: -c "node gridd.js -t | ./node_modules/bunyan/bin/bunyan" 

[email protected] ~/grid $ docker-compose -f ../docker-compose-test.yml -p test up 
Removing test_grid_1 
Recreating 4e0104efc149_4e0104efc149_4e0104efc149_test_grid_1 

ERROR: for grid Container command not found or does not exist. 
Attaching to 
使用该泊坞窗,撰写文件结果3210

我也尝试使用exec方法,docker-compose命令作为列表,结果相同

回答

0

好吧,这必须是docker-compose中的一个错误。只要我将docker-compose.yml文件移动到当前目录,并且不指定是否带有-f标志,则一切正常:)