I have a project that need to mount a single directory into the docker container, and I mount it in a similar way
agent:
image: agent:latest
container_name: agent
volumes:
- $PWD/status.txt:/status.txt
Is A Directory
error occurs when I modify status.txt in open
mode.
with open('status.txt','a') as f:
...
...
docker-compose seems to recognize files as directories.
I would appreciate it if you could tell me how to solve it?