I’m trying to share value between 2 python files in 2 differents containers, the idea is to use “volume” so both .py can access the file. On .py will fill the .txt file and the other will read the .txt file. When I try to upload it there is an error: “Bind mounts are not allowed”. How can I fix it ? Am I using the containers in the right way ? Attached the folder that I try to flash, my dockercompose and the two dockerfile. Notice that in the folder “writer” and “reader” there is the python file and the docker file.
Thank you for your help. Does it mean that I don’t use the “volume” and I just copy the file in the directory from the Dockerfile ? Is there any other way to share variable between containers that I have to try?