Task definition container command.
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
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
Relevant questions
Unable to create a new revision of Task Definition
asked a year ago0 1 How to set permission on Volume mount
asked a year agoForce New Task Definition Revision to run
asked a month agoTask definition container command.
asked 2 months agoHow to have ECS map ports automatically when a task is deployed in EC2?
asked 2 years agoHow to mount host storage /dev/xvda1 from AWS batch
asked 2 years agoThe "new" Amazon ECS Console is missing fundamental options like container command overrides
asked 4 months agoFargate: how to stop task after finishing
Accepted Answerasked 4 months agoEC2 Task EFS mount issue
asked 6 months agodefining the name of task definition json to run ecs task in github actions
asked 2 years ago