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?

  • Generate TLS certificates for Docker for Windows
  • Centos and Fedora Docker, I can not start mysql
  • How can I access both ports 8080 and 9990 on bluemix single container for wildfly?
  • Building Dockers with Ansible docker_image
  • docker - change default login user
  • docker-compose basic Prometheus / Grafana example with one node exporter
  • Thanks in advance.

  • Docker WebLogic 11g container network issues after restart
  • Dockerode : run omxplayer command
  • Run bash command before running container
  • What's the best way scale clustrix with docker?
  • Passing multiple env files in docker run command
  • Docker mysql data not reflecting chages
  • 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.