Share and learn in the Docker community.
Docker for Windows is also affected but the file is deleted and not truncated.
See Perl -i truncates file on host-mapped volume