ecs-cli撰写服务不会终止

我想要构build一个脚本来部署docker容器到ecs。

这是我正在使用的命令。

ecs-cli compose --file src/main/docker/docker-compose-export.yml -p export service up 

它大约60%的时间工作。 其他40%的时间是命令停顿。

这是撰写文件

 version: '2' services: export: image: 1234567890lalala.dkr.ecr.eu-central-1.amazonaws.com/export:${VERSION} cpu_shares: 200 mem_limit: 100000000 

我已经上传图像到ecsregistry之前。

这是我得到的日志:

 WARN[0000] Skipping unsupported YAML option... option name=networks WARN[0000] Skipping unsupported YAML option for service... option name=networks service name=export INFO[0000] Using ECS task definition TaskDefinition="ecscompose-export:3" INFO[0000] Updated the ECS service with a new task definition. Old containers will be stopped automatically, and replaced with new ones desiredCount=1 serviceName=ecscompose-service-export taskDefinition="ecscompose-export:3" INFO[0000] Describe ECS Service status desiredCount=1 runningCount=1 serviceName=ecscompose-service-export INFO[0030] Describe ECS Service status desiredCount=1 runningCount=1 serviceName=ecscompose-service-export INFO[0061] Describe ECS Service status desiredCount=1 runningCount=1 serviceName=ecscompose-service-export INFO[0091] Describe ECS Service status desiredCount=1 runningCount=1 serviceName=ecscompose-service-export 

运行计数为2,然后回到1(这是预期的)。 但是,当一切正常时,它不会停止,但它会持续检查一下状态,最后会停下来。

集群上的服务状态良好。 新的docker图像正在运行,一切都find了。 只是命令并没有停止。

有没有人有一个想法如何解决这个问题? 有没有其他命令可以用来以更可靠的方式实现相同的function?