'How to setup secondary domain controller in docker container on windows server?
For some reasons, I need to setup SDC (Secondary Domain Controller) in docker container on Windows server host.
I have a host with Windows Server 2016 and install docker desktop on it with hyper-v support.
And I creat a container with the following command and install samba on it.
docker run -it --privileged -p 135:135 ubuntu:20.04 /bin/bash
Now I use samba-tool domain join myad.local ... to join AD as SDC, and run samba.
But when I use repadmin /showrepl on Windows server, it gives me error 1722 (The RPC server is unavailable)
I think that is because the conflict between samba and Windows AD server, because they both need port 135.
Does anyone know hot to solve this ? Maybe change port 135 to another port, but I have no idea how to do that.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
