Replies: 1 comment 3 replies
-
I suspect your hypothesis is correct, and that it's a labeling issue that shows up because of the SELinux related changes in the 1.3.0 release. You can confirm by enabling the admin container on one of the nodes and checking AFAIK this is undocumented, but ECS allows you to pass the relabel flag (
|
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello everyone,
I'm having an issue with this scenario: ECS task definition with two containers:
/my-volume/my-file.txt
/my-volume/my-file.txt
from container A usingvolumesFrom
in the task definition and tries to read its contentWhen this task is run on an ECS Container Instance launched from the latest Amazon Linux 2 ECS-optimized AMI, everything works like a charm.
However, when using the latest Bottlerocket OS ECS-optimized, I get a permission error: container B gets permission denied when it tries to read the file in the mounted volume.
After a few tries and searches, I've made the hypothesis issue is caused by the volume bind not being mounted with Docker's
z
flag, which causes the volume not being correctly re-labeled to be accessed by multiple containers.Can anyone tell me if I'm pointing in the right direction?
If yes, is there any known solution or workaround to make this work?
Is there some way I can test out my hypothesis?
Thanks in advance for your help,
Paolo
Beta Was this translation helpful? Give feedback.
All reactions