The warning can be displayed even in your are not testing EGL (headless flag) since ogre2 loops over the EGL devices. If you are not using the EGL it can be probably be ignored.
The underlying problem to resolve it is the access to the render group. The render group could be created in the docker image by installing the ubuntu-common-drivers but the problem won't be solved since there is no mapping between GIDs in render groups from the system to the container.
See:
https://bugs.launchpad.net/ubuntu/+source/base-passwd/+bug/2045768
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1058500