docker run program arguments in aws ecs

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. I have managed to do passing a new entrypoint in the container configuration in ECS, as if I were passing it in the docker run command line.

Unfortunately, when doing so, I am overriding the internal entrypoint that was already defined in the image. I would like to use the internal entrypoint, just adding some more command line arguments, like --debug options. Is there any way to do that?

  • NAS storage in Docker Container
  • Docker Mounting Error - File Not Found
  • Shortcut command for docker-compose build + down + up
  • mesos-agent error failed to start: Unsupported container image type: DOCKER
  • How to upgrade npm to npm@5 on the latest node docker image?
  • How to install a python package with all the dependencies into a Docker image?
  • Thanks in advance.

  • Dockerized PostgreSQL: psql: FATAL: the database system is starting up
  • docker ubuntu container: shell linked to bash still starts shell
  • How can I mount a volume to docker container in OSX?
  • Empty directory when mounting volume using windows for docker
  • Selenium Test Execution in Docker with UI
  • Elasticsearch deployment on google app engine flex
  • 2 Solutions collect form web for “docker run program arguments in aws ecs”

    It was easy: the command line arguments can be passed as Command in ECS configuration, instead of entrypoint.

    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

    Docker will be the best open platform for developers and sysadmins to build, ship, and run distributed applications.