2 Answers
- Newest
- Most votes
- Most comments
0
I'm still looking for a bit of an assit here as I've spent a couple days researching this topic.
Either of the following solutions would resolve my issue if they are possible:
- How do you mount a single EFS Volume Mount from one container into another container within the same Fargate task.
- Is it possible to overwrite a mount created via volumesFrom by specifying a separate mount with the same containerPath?
answered 3 years ago
0
So I had a complete misunderstaning of how the bind mounts had to be set up in order to selectively mount directories inside other containers of the same Fargate task. I've since resolved this issue by:
- Adding the volumes decalared in the Dockerfile with VOLUME to the container, using the containerPath as specified in the Dockerfile and the same sourceVolume as defined in the volumes property of the task definition.
- Then we mounted the volume via a mountPoint on the desired container by specifying the containerPath and using the same sourceVolume.
- We were then able to specify that the mountPoint should be readOnly.
Hopefully, this helps someone else running into a similar issue.
answered 3 years ago
Relevant content
- Accepted Answerasked 5 months ago
- asked 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated 2 months ago
- AWS OFFICIALUpdated a month ago