Sign inSign up

saltyvagrant/samba-dc

By saltyvagrant

•Updated over 6 years ago

Samba 4 Domain Controller

Image
0

10K+

saltyvagrant/samba-dc repository overview

A simple container for Samba Domain Controller based on LasLabs container⁠.

Code available from https://gitlab.com/svdocker/samba-dc⁠

⁠Use

docker run --rm  --privileged --network=host -v /samba:/samba -e SAMBA_DC_REALM={REALM} -e SAMBA_DC_DOMAIN={DOMAIN} -e SAMBA_DC_ADMIN_PASSWD={SECRET} -e SAMBA_DC_DNS_BACKEND='SAMBA_INTERNAL' --name=samba saltyvagrant/alpine-samba-dc:latest

⁠Volumes

/samba

The smb.conf will be auto generated based on runtime environment variables in /samba/etc if non-supplied.

Samba data will be placed in /samba/lib.

Samba log will be written to /samba/logs.

⁠Ports

Can be individually specified but --network=host recommended to minimize latency.

Note As of 0.2.0 ports 139 and 445 are not exposed as this container is intended for use as a DC and samba recommend not also using a DC instance and a fileserver. Not exposing these ports simplifies subsequent setup of an SMB fileserver on the same machine.

37/udp
53
88
135/udp
137/udp
138/udp
389
464
636/tcp
1024-5000/tcp
3268/tcp
3269/tcp

⁠Environment Vars

VariableDescriptionRequired
SAMBA_DC_ADMIN_PASSWDDomain admin passwordRequired
SAMBA_DC_REALMDC RealmRequired
SAMBADC_DNS_BACKENDDNS backend; either SAMBA_INTERNAL or BIND_DLZRequired
SAMBA_DC_DOMAINDC DomainRequired
SAMBA_DNS_FORWARDERDNS Frowarder (when using SAMBA_INTERNAL DNS)Optional (default 1.1.1.1)

⁠Build

⁠Build Env Vars

VariableDescription
BUILD_DATESets org.label-schema.build-date
VCS_REFSets org.label-schema.vcs-ref
VERSIONSets org.label-schema.version

Tag summary

Content type

Image

Digest

Size

45.9 MB

Last updated

over 6 years ago

docker pull saltyvagrant/samba-dc