I have a sample.txt file which is mounted into my docker container as follows
docker run \
--rm \
-it \
--name devtest \
--mount type=bind,source=$(pwd)/sample.txt,target=/sample.txt \
python:3.8-slim-buster /bin/bash
Now I am expecting the sample.txt file to change inside the container whenever i edit it from the host.
But it does not change.
Can anyone help. I wanted the changes to be reflected.