2개 답변
- 최신
- 최다 투표
- 가장 많은 댓글
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?
답변함 3년 전
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.
답변함 3년 전
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 2년 전