Code Monkey home page Code Monkey logo

docker-samba's Introduction

docker-samba

Docker container to run a Samba server - based on original image from Peter Boyd

Image includes wsdd which enables the Samba server to be found by Web Service Discovery Clients like Windows.

Usage

docker run -t -d --rm \
  --name samba \
  -p "137:137/udp" \
  -p "138:138/udp" \
  -p "139:139" \
  -p "445:445" \
  -v <path/to/config>:/config \
  -v </path/to/share>:/shares \
  edcourtenay/docker-samba:latest

This will run a simple Samba server storing the generated smb.conf file at the given config directory and sharing the single share path.

Parameters

  • -p "137:137/udp" -p "138:138/udp" -p "139:139" -p "445:445" standard samba ports that need to be mapped for this to work.
  • -v <path/to/config>:/config set the path where the samba config will be saved. This allows easy editing of the generated config.
  • -v </path/to/share>:/shares one or more directory mappings that you want to share. Any shares set in the SHARES environment variable should map to directories made available through similar mappings.
  • -e SERVERNAME set the hostname that will be used for samba shares (default = rancher-samba).
  • -e USERNAME set the username that will be created as a samba user (default = samba).
  • -e GROUP set the group that the USERNAME will belong to (default = samba).
  • -e PASSWORD set the password that will be created for the samba user account (default = password).
  • -e SHARES set this to a list of paths to create samba shares for (default = /shares).
  • example: -e SHARES "/shares/documents /shares/photos" would create two shares, sharing the contents of the specified paths. If /shares is a mounted volume then these paths would be shared from the host not the docker container.
  • -e PUID set the user id to use for the samba user (default = 1100). This is used to help with file permissions.
  • -e PGID set the group id to use for the samba user (default = 1100). This is used to help with file permissions.

docker-samba's People

Contributors

dependabot[bot] avatar edcourtenay avatar p-boyd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.