Task definition container command.

0

Hello I need to have a mount point from a volume in my task definition container. the mount point is /example/ex/1:/port ; My question is, is posible to just copy the files in ~/1 to /port instead of overwriting everything in /port ? The other solution will be to make a "sh, -c, ln -s path:path" but i dont know how correct would that be. Thanks

Alfonso
已提問 2 年前檢視次數 324 次
1 個回答
0

Mounting won't overwrite the files in .../1 but shadow them (i.e., they still exist and consume disk space), while there are ways to access "shadowed files", it will be simpler to mount to a different directory, and copy/link to the .../1 directory.

Note that it might be useful to separate the copying a script to the container's entrypoint, which will keep the command cleaner.

see for more details: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/task_definition_parameters.html

AWS
Nati_C
已回答 2 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南