This is the source for a dockerized version of Dronekit SITL (software in the loop) as published at:
https://dronekit-python.readthedocs.io/en/latest/develop/sitl_setup.html
run the docker-compose file with docker-compose up and run the test.py file with python after the container starts.
prebuilt version of this container at https://hub.docker.com/repository/docker/valqaridrone/sitl
or docker pull valqaridrone/sitl:latest