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?

  • docker-compose up not adding code to remote container
  • How to prevent “docker-machine create” to install/upgrade docker host, just add it
  • Seeding sclorg/mariadb container
  • How to read all data inside volume from kubernetes master
  • docker pseudo file not showing swap memory information
  • error response from daemon: no such container: dionaea
  • Thanks in advance.

  • Pipe RUN's output to ENV in Dockerfile
  • Empty response from server running inside Docker container
  • docker exec TERM setting
  • Understanding a complex docker command
  • Cadvisor support ELK stack
  • Unable to Register Chaincode & Successfully Start Blockchain Network
  • 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

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