Samba-AD-DC with docker on OMV Goal: Having a Samba running as an Active Directory Domain Controller Problem: OMV is using Samba and blocking the ports Solution: mcvlan for exposing a docker container direcktly to the omv-host-network My setup Router: IP: 192.168.178.1 DHCP-Range: 192.168.178.0/24 OMV-Host: Network-device: enp1s0 Docker/Portainer installed via omv-extras (not covered here) Samba-DC: IP: 192.168.178.2 Domain: example.com Hostname: ladp Step 1: Adding a vlan-network in docker docker network create -d macvlan --subnet= --gateway= -o parent= example: docker network create -d macvlan --subnet=192.168.178.0/24 --gateway=192.168.178.1 -o parent=enp1s0 fritzbox variables: = the DHCP-Range of the router = the IP of the router = do "ip link show", mostly eht0 or stuff = chosse new name for the docker-network-name Step 2: Adding 2 volumes for the docker container with Portainer Volumes-> Add Volume Name=samba-etc Driver=local Volumes-> Add Volume Name=samba-lib Driver=local Step 3: Adding the docker-container with Portainer Containers->Add Container Name= Registry:DockherHub Image: imunew/samba4-ad-dc:latest Advanced mode: true Volumes: samba-lib:/var/lib/samba samba-etc:/etc/samba Network: Network: Hostname: ldap IPv4: 192.168.178.2 Env: SAMBA_DC_REALM = example.com SAMBA_DC_DOMAIN = example SAMBA_DC_ADMIN_PASSWD = P@ssw0rd SAMBA_DC_DNS_BACKEND = SAMBA_INTERNAL Deploy the container Step4 (optional): Add Windows 10 Pro client to the domain and adding the windows ladp browser to add/remove/administer users. First change the dns-server for your network to the Samba-DC IP ( 192.168.178.2 ) (optional reboot) Add your computer to the example.com domain, you will be asked for account (Administrator) and password (SAMBA_DC_ADMIN_PASSWD = P@ssw0rd) Promt should appear for succesfully adding you to the example.com domain. Reboot. Login with "Administrator@example.com" password "P@ssw0rd" Goto systemconfig - programs and features - add optional features - active directory groups and user services