You can create a shared folder between the filesystem on your machine and the docker container. Then simply run Gmsh/Matlab on your native system and use the shared folder to do the pre/post processing.
By default, I believe fenicsproject run
shares your current folder with the container.