docker run program arguments in aws ecs

后端 未结 5 989
予麋鹿
予麋鹿 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:13

    You can add command line arguments for the container entry point when creating new ECS task revision in AWS console. Open your container settings, and under the ENVIRONMENT label put the comma-separated list of command line arguments into the "Command" field.

    Example:

    --debug,--packages org.apache.hadoop:hadoop-aws:2.7.3
    

    will add 2 command line arguments to your container entry point.

提交回复
热议问题