The problem should be that you run the docker container in the Windows console. The Xhost should be a Linux environment. Maybe you can run the docker container in the WSL console with the option ' --env="DISPLAY" --env="QT_X11_NO_MITSHM=1" --volume="/tmp/.X11-unix:/tmp/.X11-unix:rw" '