Sign inSign up

jmilette/samba

By jmilette

Updated over 5 years ago

Extremely bare bones samba in docker with needed components (i.e. NTPD) for domain controller.

Image
0

1.1K

jmilette/samba repository overview

NTPD is included with this image, and will work with the official SAMBA example configurations: https://wiki.samba.org/index.php/Time_Synchronisation#With_ntpd

The user "samba_share" is created in the container with the UID and GID specified in the docker-compose below, this is useful for samba force user/group, for example.

Example docker-compose:

version: '3.3'

services:

  samba:
    image: jmilette/samba
    #network_mode: "host"
    restart: always
    volumes:
    # You must provide a Samba config file, as well as the krb5.conf if you are using samba as a domain controller.
      - ./smb.conf:/etc/samba/smb.conf:ro
      - ./data:/var/lib/samba
      - ./krb5.conf:/etc/krb5.conf:ro
      - ./ntpd.conf:/etc/ntpd.conf:ro

    # Shares
      - /srv/data:/srv/data
    environment:
      - USER_ID=1000
      - GROUP_ID=1000

    ports:
      - 53:53
      - 53:53/udp
      - 88:88
      - 88:88/udp
      - 123:123/udp
      - 135:135
      - 137-138:137-138/udp
      - 139:139
      - 389:389
      - 389:389/udp
      - 445:445
      - 464:464
      - 464:464/udp
      - 636:636
      - 1024-1044:1024-1044
      - 3268-3269:3268-3269

Tag summary

Content type

Image

Digest

Size

129 MB

Last updated

over 5 years ago

docker pull jmilette/samba