Skip to content
/ samba Public
forked from dockur/samba

Samba SMB server in a Docker container.

License

Notifications You must be signed in to change notification settings

pepramon/samba

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Version Size Pulls

Docker container of Samba, a re-implementation of the Windows SMB networking protocol.

How to use

Via docker-compose

version: "3"
services:
  samba:
    image: dockurr/samba
    container_name: samba
    environment:
      USER: "samba"
      PASS: "secret"
      UID: 1000    # Optional, default 1000
      GID: 1000    # Optional, default 1000
      RW: true     # Optional, default true
    ports:
      - 445:445
    volumes:
      - /home/example:/storage
    restart: on-failure

Via docker run

docker run -it --rm -p 445:445 -v "/home/example:/storage" -e "USER=samba" -e "PASS=secret" -e "UID=1000" -e "GID=1000"dockurr/samba

FAQ

  • How do I modify the configuration?

    You can set the USER and PASS environment variables to modify the credentials for the share from their defaults (user samba with password secret).

    To change the storage location, you can bind /storage to the location you want to use for the share.

    If you need more advanced features, like multiple shares, you can modify the smb.conf file in this repo, and bind mount it to the container like this:

    volumes:
      - /example/smb.conf:/etc/samba/smb.conf

Stars

Stars

About

Samba SMB server in a Docker container.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Shell 84.0%
  • Dockerfile 16.0%