1 Antwort
- Neueste
- Die meisten Stimmen
- Die meisten Kommentare
1
The command
parameter of the task definition is to specify the command to run in your container at startup. The other parameters that you send to the docker cli (i.e. -e, -v, -p) usually map to other parameters of the task definition.
You properly used environment
for -e
and portMappings
for -p
. For -v
you need to use volumes
and mountPoints
in your Task Definition. You don't need the --name
parameter, it is specified in containerName
.
See this link for more information on how to use EFS volumes with ECS: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/efs-volumes.html
See this for full reference of task definition parameters: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html
beantwortet vor 2 Jahren
Relevanter Inhalt
- AWS OFFICIALAktualisiert vor 9 Monaten
- AWS OFFICIALAktualisiert vor 3 Monaten
- AWS OFFICIALAktualisiert vor 2 Jahren
- AWS OFFICIALAktualisiert vor 2 Jahren