i\'ve created a Samba AD DC with as Docker. The full source can be found here. The provision step is started with:
samba-tool domain provision --use-rfc2307 -