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
preguntada hace 2 años324 visualizaciones
1 Respuesta
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 hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas