Sign inSign up

sk8r776/samba

By sk8r776

•Updated over 2 years ago

Samba SMB server in a Docker container.

Image
0

411

sk8r776/samba repository overview

Build Version Size Pulls

Docker container of Samba, an 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"
    ports:
      - 445:445
    volumes:
      - /home/example:/storage
    restart: on-failure

Via Docker CLI:

docker run -it --rm -p 445:445 -e "USER=samba" -e "PASS=secret" -v "/home/example:/storage" 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).

    You can set UID and GID environment variables to change the user/group id's, and set RW: false to make the share read-only.

    If you need more advanced features, 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

Tag summary

Content type

Image

Digest

sha256:23d09af15…

Size

19.9 MB

Last updated

over 2 years ago

docker pull sk8r776/samba