Hi, i'm trying to launch a docker on fargate with ...
# aws
b
Hi, i'm trying to launch a docker on fargate with a custom start command, but I cant find how in the documentation. Is it possible ? or should I build an image that start the way I want with no custom command ?
b
Certainly possible. Use the
command
option for the containers definition:
Copy code
const task = new awsx.ecs.FargateTaskDefinition(
  'app',
  {
    cpu: '1024',
    memory: '2048' /* MiB */,
    containers: {
      app: {
        image: "ubuntu",
        command: ['/start'],
      }
    }
  }
)
b
ooooh, great ! thanks. I'll try it tonight 🙂 thanks @broad-gold-44713