Check out http://www.opserver.de/ubb7/ubbthreads.php?ubb=showflat&Number=464463#Post464463

I have already done it, dockerized it and you can download this Docker image and try for yourself. What it is not mentioned in that thread, but it's important, is to run xhost + in order to allow X sessions coming from the Docker instance.

In the docker image you won't have MT4 installed, only Zorro 1.50, but it is pretty straightforward to install it there. I have not uploaded the image to Docker Hub with MT4 installed to let people who download it install their preferred MT4 version (also, it is "broker-sensitive"... so installing my MT4 maybe would not be fit for others)