Gazebo ros crashes with exit code 255

Hi there,
I would like to use gazebo inside docker.
But gazebo (gzserver) always exists with exit code 255.
There are no hints about what might possibly go wrong.

Feel free to reproduce the error using this repository:

Thank you very much for your help in advance!

I made a small pull request to let gazebo’s verbose mode be set from a roslaunch command-line invocation by adding verbose:=true:

Can you post the console output that you see when running in verbose mode?

Huge thanks!
The issue was, that I forgot to close the gazebo on the host.
The error was:
[Err] [Master.cc:96] EXCEPTION: Unable to start server[bind: Address already in use]. There is probably another Gazebo process running.

In case someone ends up here, because of the error message (but not necessarily with the use of docker):

I had this error message as well and not even restarting the roscore helped. It turned out that gzserver was still running on my machine. After killing it, e.g. from htop, it started as usual.