>>706
ボリューム使ってコンテナ間でふを共有しても、
排他制御されないらしい

https://www.digitalocean.com/community/tutorials/how-to-share-data-between-docker-containers

but there’s one critical caveat: at this time, Docker doesn’t handle file locking. If you need multiple containers writing to the volume, the applications running in those containers must be designed to write to shared data stores in order to prevent data corruption.

ファイルオープンしているときに、
別のコンテナからファイルに変更を加えられるということだよね。

コンテナは、確か、同じカーネルで動作しているけど、リソースを分けるように名前をわけているらしい。

ファイルハンドラーも分けられているに違いない。

なので、ローカルマシンで同じファイルシステムに複数プロセスがファイルにアクセスするシナリオとは異なっているのだと思う。