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?

  • Firefox hangs after opening Karma Server URL in Docker
  • Flask, Gunicorn, NGINX, Docker : What is properly the way to config SERVER_NAME and proxy_pass?
  • What is the minimum healthy percent and maximum percent in Amazon ECS
  • Docker: private registry access
  • Download BAIR-trained Caffe Model Using Script
  • Windows Docker in Linux machine
  • Thanks in advance.

  • Conditional ENV in Dockerfile
  • install nvm in docker
  • “Address already in use” error upon docker-compose up
  • openshift internal docker registry repo address is no same as docker-registry service cluster ip
  • How to export/save an entire Docker container/image
  • Docker: how to execute a batch file when container starts and keep the user in cmd / session
  • 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.