docker run program arguments in aws ecs

后端 未结 5 1128
予麋鹿
予麋鹿 2021-02-07 04:59

I have a working container in Amazon\'s ECS that runs a program as a task. I would like to pass some program arguments, as I would do when running locally with docker run<

5条回答
  •  耶瑟儿~
    2021-02-07 05:12

    Use environment section in ecs task definition to inject your configs.

    "environment" : [
        { "name" : "string", "value" : "string" },
        { "name" : "string", "value" : "string" }
    ]
    

    Please refer to the following aws documentation http://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html#container_definition_environment

提交回复
热议问题