🌐
Helge Klein
helgeklein.com › blog › samba-active-directory-in-a-docker-container-installation-guide
Samba Active Directory in a Docker Container: Installation Guide
August 27, 2025 - This article explains how to install a Samba v4 Active Directory domain controller in a Docker container. It's part of a mini-series about running Samba Active Directory and file server service on a home server.
🌐
GitHub
github.com › LinuxCrafts › samba-ad-dc
GitHub - LinuxCrafts/samba-ad-dc: Docker Image - Samba4 Active Directory Domain Controller · GitHub
This repository contains Docker files used to build a working Samba 4 Active Directory Domain Controller (AC DC).
Starred by 5 users
Forked by 4 users
Languages   Shell 82.2% | Dockerfile 17.8%
Discussions

Samba DC and DNS
A domain controller is one of those services that doesn't scale to a container. It should be a dedicated VM of its own just because of the interaction with other network services. Overall, for Active Directory I'd always recommend just using Windows. Samba AD is just not worth the additional time and effort and is still stuck back around the 2003 or older AD level, which takes away some of the more resilient and secure features of AD. More on reddit.com
🌐 r/sysadmin
13
2
October 1, 2023
Samba 4 AD - feature parity with Windows AD?
It does the job. We use samba4 in a mixed environment. W10/Ubuntu20. It worked well until a libpam-sssd update on ubuntu worksfations totally broke the kerberos auth. We'll migrate to Fedora very soon. Fedora works like a charm with samba4 even if rhel told it doens't officially support samba4. W10 workstations works well. GPO works. Our needs are not well elaborated for the moment so i cannot tell unless you have specific questions. More on reddit.com
🌐 r/linuxadmin
23
35
May 25, 2022
Active Directory - using Samba on a Raspberry Pi for a backup AD DC?
No, that won’t work. What is your concern with the DC going down though? Are long downtimes expected? Most everything will continue to work when the DC is unreachable so you don’t need to worry too much about it. My router handles DHCP (this really is the best option anyways) and I have a secondary DNS so I can go days with the DC down with no major issues... More on reddit.com
🌐 r/homelab
17
2
March 3, 2019
AD + Samba/CIFS web interface
It seems you found solutions but not ones that come in Docker images. Why is docker a critical requirement? One good reason to not use docker for admin boxes is that the base images are not always kept up to date. If you have issues finding one this is likely to be an issue. That is not something you want for such an important machine. My take on it is make an admin server and keep it. Docker has many great use cases. I don't believe this to be one of them. More on reddit.com
🌐 r/selfhosted
10
6
September 26, 2018
🌐
GitHub
github.com › Fmstrat › samba-domain
GitHub - Fmstrat/samba-domain: Samba Active Directory Domain Controller for Docker · GitHub
Samba Active Directory Domain Controller for Docker - Fmstrat/samba-domain
Starred by 285 users
Forked by 130 users
Languages   Shell 91.4% | Dockerfile 8.6%
🌐
GitHub
github.com › Tiozao-do-Linux › samba4-addc
GitHub - Tiozao-do-Linux/samba4-addc: Samba4 as Active Directory Domain Controller (AD DC) · GitHub
______________________________... To create a Docker image with Samba4 acting as an Active Directory Domain Controller (AD DC), the choice of base image directly influences the ease of installation, community support, and image maintenance...
Starred by 11 users
Forked by 2 users
Languages   Shell 88.8% | Dockerfile 11.2%
🌐
A Mutable Log
tewarid.github.io › 2018 › 05 › 25 › active-directory-domain-server-using-samba-4.html
Active Directory domain server using Samba 4 | A Mutable Log
May 25, 2018 - docker run --rm -i -t --privileged -p 389:389 -e SAMBA_DC_REALM="corp.example.net" -e SAMBA_DC_DOMAIN="EXAMPLE" -e SAMBA_DC_ADMIN_PASSWD="5u3r53cur3!" -e SAMBA_DC_DNS_BACKEND="SAMBA_INTERNAL" "laslabs/alpine-samba-dc" samba
🌐
Docker Hub
hub.docker.com › r › pitkley › samba-ad-dc
pitkley/samba-ad-dc - Docker Image
Samba4 Active Directory Domain ... to take over, feel free to contact me/open an issue on the linked GitHub repository. This is a docker container running Samba4 as a domain controller....
🌐
GitHub
github.com › babim › docker-sambaad
GitHub - babim/docker-sambaad: Active Directory Domain Controller by samba4 on Alpine Linux
Active Directory Domain Controller by samba4 on Alpine Linux - babim/docker-sambaad
Starred by 17 users
Forked by 7 users
Languages   Shell 100.0% | Shell 100.0%
🌐
Docker Hub
hub.docker.com › r › rsippl › samba-ad-dc
rsippl/samba-ad-dc - Docker Image
Samba 4 Active Directory Domain Controller · Image · 6 · 50K+ OverviewTags · This repository is unmaintained. Check if one of the forks are up to date. Run these commands to build, start and stop the container · # build samba AD image docker build -t samba-ad-dc .
🌐
GitHub
github.com › tkaefer › alpine-samba-ad-container
GitHub - tkaefer/alpine-samba-ad-container: Alpine Linux based container (aka Docker) for Samba 4 Active Directory · GitHub
Alpine Linux based container (aka Docker) for Samba 4 Active Directory - tkaefer/alpine-samba-ad-container
Starred by 17 users
Forked by 10 users
Languages   Shell 70.8% | Dockerfile 29.2%
Find elsewhere
🌐
Docker Hub
hub.docker.com › r › instantlinux › samba-dc
instantlinux/samba-dc - Docker Image
Getting a domain-controller cluster up and running properly requires a lot of correctly-configured trust relationships established between domain controllers, and Samba's documentation of error messages and problem-resolutions is pretty thin. If you're only running this version of samba, it's likely there will be few problems. But in a mixed environment with Microsoft Active Directory servers and/or older versions of samba4, you're bound to run into problems that require tweaking.
🌐
Docker Hub
hub.docker.com › r › bodsch › docker-samba4
bodsch/docker-samba4 - Docker Image
ldapsearch -H ldaps://localhost -D "[email protected]" -w "${SAMBA_DC_ADMIN_PASSWD}" -b "CN=Users,DC=samba,DC=lan" '(&(objectClass=user)(sAMAccountName=grillstarling))' Copy · Recent tags · 4.8.12 · Recent tags · Content type · Image · Digest · Size · 37.1 MB ·
🌐
Docker Hub
hub.docker.com › r › sonohara › samba4-ad
sonohara/samba4-ad - Docker Image
sudo docker run --privileged -it -p 389:389 \ -e "DOCKER_DEBUG=1" \ -e "DNS_FORWARD=8.8.8.8" \ -e "DNS_DOMAIN=sambaad.local" \ -e "AD_PASSWORD=PASS0rd123" \ -e "AD_REALM=sambaad.local" \ -e "AD_DOMAIN=SAMBAAD" \ --restart=always \ -d sonohara/samba4-ad Copy · Code released under GNU GENERAL PUBLIC LICENSE Version 3⁠ ... Requires Docker Desktop 4.37.1 or later.
🌐
lunaplus*
lunaplus.net › posts › 2020 › 04 › docker-activedirectory
Samba4 Active directory検証環境を構築-lunaplus.net | Find hints in all sort of places
GUIでデータの内容を確認できるようになったので、samba-tool を使ってユーザーを追加してみます。 正しくユーザー追加ができれば、Apache Directory Studio でもユーザーが追加されて見れるはずです。 · $ docker exec -ti adds samba-tool user create jane.doe jane-passw0rd --use-username-as-cn "--mail-address=jane.doe@example.jp" --given-name=Jane --surname=Doe User 'jane.doe' created successfully
🌐
GitLab
gitlab.triumf.ca › docker › samba-ad-dc
samba-ad-dc Archived - docker - GitLab
November 19, 2018 - Samba v4 Active Directory Domain Controller · Read more · README · Created on November 19, 2018 ·
🌐
Docker Hub
hub.docker.com › r › imunew › samba4-ad-dc
imunew/samba4-ad-dc - Docker Image
docker run -d \ -e SAMBA_DC_REALM='workgroup.local' \ -e SAMBA_DC_DOMAIN='workgroup' \ -e SAMBA_DC_ADMIN_PASSWD='P@ssw0rd' \ -e SAMBA_DC_DNS_BACKEND='SAMBA_INTERNAL' \ 'imunew/samba4-ad-dc' Copy
🌐
Docker Hub
hub.docker.com › r › diegogslomp › samba-ad-dc
diegogslomp/samba-ad-dc - Docker Image
docker run -d --privileged \ --restart=unless-stopped \ -e REALM='SAMDOM.EXAMPLE.COM' \ -e DOMAIN='SAMDOM' \ -e ADMIN_PASS='Passw0rd' \ -e DNS_FORWARDER='8.8.8.8' \ -e BIND_NETWORK_INTERFACES=false \ -v dc1_etc:/usr/local/samba/etc \ -v dc1_private:/usr/local/samba/private \ -v dc1_var:/usr/local/samba/var \ --name dc1 --hostname DC1 diegogslomp/samba-ad-dc Copy
🌐
GitHub
github.com › burnbabyburn › docker-samba-dc
GitHub - burnbabyburn/docker-samba-dc: Samba Active Directory Domain Controller for Docker · GitHub
Check the samba documentation for how to allow groups/etc. The container is stateless, so you can do a docker rmi samba-domain and then restart the container to rebuild packages when a security update occurs.
Starred by 22 users
Forked by 6 users
Languages   Shell 71.0% | Jinja 21.4% | Python 5.4% | Dockerfile 2.2%
🌐
Schneide Blog
schneide.blog › 2022 › 06 › 27 › running-a-containerized-activedirectory-for-developers
Running a containerized ActiveDirectory for developers – Schneide Blog
June 27, 2022 - Thanks for the good work. I have made few changes in the example and also added docker compose for easy setup. The entire thing is published in Github repo. https://github.com/amardeep2006/ldap-activedirectory-samba/tree/main
🌐
Docker Hub
hub.docker.com › r › militellovinx › samba-ad
militellovinx/samba-ad - Docker Image
Samba 4 AD container based on Alpine Linux 3.4 · Image · 0 · 639 · OverviewTags · This repo has been created based on tkaefer/alpine-samba-ad-container/⁠ · Some parts are collected from: Osirium/docker-samba-ad-dc⁠ · myrjola/docker-samba-ad-dc⁠ · You can read more about Samba, Active Directory & LDAP here⁠ ·