Running X server inside docker container

I have problems running X server inside Docker container. - this was my original issue on Stackoverflow. Running container with X server with --priviliged option helped but now I have another issue.

The screen on my host machine turns black as I start docker container. Could anyone suggest something?

My problem described here: