AWS Elastic Beanstalk无效绑定安装规范错误

我试图将traefik.io代理部署到popup的beanstalk中作为docker镜像,但是我正在运行docker卷装入错误。

下面是运行代理的docker命令

docker run -d -p 8080:8080 -p 80:80 -v $PWD/traefik.toml:/etc/traefik/traefik.toml traefik 

我为Elastic Beanstalk创build了一个Dockerrun.aws.jsonconfiguration文件,如下所示:

 { "AWSEBDockerrunVersion": 2, "volumes": [ { "name": "traefiktoml", "host": { "sourcePath": "/var/app/current/traefik.toml" } } ], "containerDefinitions": [{ "name": "traefik", "image": "traefik", "essential":true, "memory":512, "portMappings": [{ "hostPort": 80, "containerPort": 80 }, { "hostPort": 8080, "containerPort": 8080 }], "mountPoints": [ { "sourceVolume": "traefiktoml", "containerPath": ":/etc/traefik/traefik.toml", "readOnly": false }] }] } 

在EBS中部署了打包在一个zip文件中的Dockerrun.aws.json和traefik.toml文件后,我得到下面的错误。

 Deployment completed, but with errors: During an aborted deployment, some instances may have deployed the new application version. To ensure all instances are running the same version, re-deploy the appropriate application version. Failed to deploy application. Unsuccessful command execution on instance id(s) 'i-071631b'. Aborting the operation. [Instance: i-071631b5] Command failed on instance. Return code: 1 Output: . Failed to start ECS task after retrying 2 times. Failed to start ECS task: arn:aws:ecs:us-east-1:5240:task/60ea89a0-b050-4875-b63 is STOPPED. ECS task stopped due to: Essential container in task exited. (traefik: CannotCreateContainerError: API error (500): invalid bind mount spec "/var/app/current/traefik.toml::/etc/traefik/traefik.toml": invalid mode: /etc/traefik/traefik.toml) 

任何错误的指针或如何得到这个工作将非常欢迎!