Score:0

Providing working-directory in AWS CLI ECS run-task command

cn flag

Is there any way of overriding the working-directory from the task-definition default when starting a task from the CLI? It seems like a fairly easy thing and a potentially important thing, but, if it is available, it looks like it's going to be very obscure, in that it's not advertised in the CLI documentation or UI.

cn flag
Is this tied to the container itself? Not ECS?
cn flag
I don't understand your question. All of the directories that we could be talking about are running in a container in ECS. The container engine, which is ECS, has a working directory to begin executing from. We configure this, in ECS, in the task definition, and I'm just asking if there's a way to tell it a different one when starting. You can do this with Docker via the `--workdir` parameter: `docker run --workdir <path> <image>`.
cn flag
Apologies - I wasn't sure if ECS was using the default WORKDIR specified in the Dockerfile or a custom parameter.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.