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 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则