Mar*_*ker 5 pipe docker-compose
我在 docker-compose (1.7 build 0d7bf73 , compose file format version 1) 中运行以下命令时遇到问题,它可以从命令行 (docker 1.10.3) 正常工作:
docker run --rm --entrypoint="/bin/bash" node:4 -c "node gridd.js -t | ./node_modules/bunyan/bin/bunyan"
Run Code Online (Sandbox Code Playgroud)
我的码头工人组成:
grid:
image: node:4-slim
entrypoint: /bin/bash
command: -c "node gridd.js -t | ./node_modules/bunyan/bin/bunyan"
Run Code Online (Sandbox Code Playgroud)
使用这个 docker-compose 文件会导致
marcel@client ~/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
Run Code Online (Sandbox Code Playgroud)
我也尝试使用 exec 方法,docker-compose 命令作为列表,结果相同
| 归档时间: |
|
| 查看次数: |
4349 次 |
| 最近记录: |