I am writing to you because I have problems with ECS (AWS).
I show you my task definition part:
"mountPoints": [
{
"readOnly": false,
"containerPath": "/opt/app/main/",
"sourceVolume": "volumen-vol"
}
"volumes": [
{
"efsVolumeConfiguration": null,
"name": "volumen-vol",
"host": {
"sourcePath": "/usr/src/files/"
},
doing a docker inspect, after the task is running: "Mounts": [ { "Type": "bind", "Source": "/usr/src/files", "Destination": "/opt/app/main", "Mode": "", "RW": true, "Propagation": "rprivate" } with this shown, I explain the problem
1.- I upload files to the volume with path /usr/src/files (volumen)
2.- when you start the task, the files are reflected in /opt/app/main (mountPoints)
3.- I make a request to my application to verify that the file is in the mount point and it works well, the file exists and contains the correct data
4.- then I delete or modify files in /usr/src/files (volumen)
5.- the changes are reflected in me /opt/app/main (mountPoints), without restarting the task
6.- when I request my application, I DON'T SEE THE CHANGES. I
if i restart the task works.
why is this happening?
Thanks you!
Mensaje: