我想对多个文件运行vascobnunes / l8_reflectance图像,以分布式的形式运行到多个节点。
仅运行一个我成功完成的文件:
Docker run -v /path/to/local/input/L8imagedir:/inputpath/in/container -v /path/to/local/output/L8imagedir:/outputpath/in/container vascobnunes/l8_reflectance:latest /inputpath/in/container /outputpath/in/container
但是现在我试图弄清楚如何编写docker-compose.yml文件,以便通过群集(群发)正确分配文件处理。
有人可以帮忙吗?
谢谢!
这是我没有运气的尝试:
version: "3"
services:
l8_reflectance:
# replace username/repo:tag with your name and image details
image: vascobnunes/l8_reflectance:v0.0.5
volumes:
- LC08_L1TP_203032_20190513_20190513_01_RT:/root/app/LC08_L1TP_203032_20190513_20190513_01_RT
- app:/root/app/
args:
LC08_L1TP_203032_20190513_20190513_01_RT
app
deploy:
replicas: 5
restart_policy:
condition: on-failure