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
feita há 2 anos324 visualizações
1 Resposta
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
respondido há 2 anos

Você não está conectado. Fazer login para postar uma resposta.

Uma boa resposta responde claramente à pergunta, dá feedback construtivo e incentiva o crescimento profissional de quem perguntou.

Diretrizes para responder a perguntas