title: Reliable locking between containers on the same box
body: <p>I have a project that runs a bunch of Docker containers on the same instance. Each container has to process some file system resource exclusively so I have to lock the resource. I am currently using the <code>filelock==3.0.12</code> module in Python 3.8 but it is not very reliable. I observed that if two containers require the lock at almost the same time it happens frequently that both containers can acquire the lock. Is there a better option than <code>filelock</code>?</p>