Setting umask when using docker agent

according to Code Yarns – How to set umask for Docker container what you are doing should work but search on the net reveals there are some pitfalls on operating systems like MacOS etc.

Unfortunately this is a Docker question and not a Jenkins one.