The docker image should probably be fixed to properly set -Djava.io.tmpdir to an XWiki temp folder so that the user does not have to worry about that.
Done for XJetty as part of XWIKI-21708. Moving this issue to the Docker image project.