Create headful android simulator open on Ubuntu 16.04 stack


It turns out because I am running the Android & Docker, on Ubuntu 16.04 stack, and I am using the emulator command. It creates the emulator as headless, which is fine, but for some reason, it makes the headless simulator without GPS. Is there anyway I can create the emulator as headful on this docker? Or can I add GPS to this headless android simulator? If I run normally headful, I will get the errors such as:

emulator: INFO: QtLogger.cpp:68: Warning: Could not find the Qt platform plugin “offscreen” in “/opt/android-sdk-linux/emulator/lib64/qt/plugins” ((null):0, (null))
emulator: INFO: QtLogger.cpp:68: Fatal: This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.
Available platform plugins are: xcb.
((null):0, (null))