Samba Docker Guide

Why do you need Samba at home

Samba enables Linux / Unix machines to communicate with Windows machines in a network.

Samba - Docker container

Docker - First steps

Pre-Requisites - Get Docker! 馃悑馃憞

Important step and quite recommended for any SelfHosting Project - Get Docker Installed

It will be one command, this one, if you are in Linux:

apt-get update && sudo apt-get upgrade && curl -fsSL https://get.docker.com -o get-docker.sh
sh get-docker.sh && docker version

The configuration file that we will use today is:

Deploy with CLI

Providing that the previous steps are clear, we can jump to our terminal and use:

sudo nano docker-compose.yml

This will open a text editor, where we can paste the following configuration file:

To save, use CTRL+O, then CTRL+X to exit.

Then just deploy the service with:

sudo docker-compose up -d

You are ready to discover the devices in your LAN, the service will be running in 0.0.0.0:8080 or localhost:8080 if you use the configuration file as it is provided.

If you have deployed it in one device at home, you can use it from any other connected at the same router, just use the internal IP of the device in which you made the deployment.

You can check that in Linux with:

hostname -I

Interested to discover similar services that you can self-host with Docker? - Check this out:

  • User and pass: guacadmin/guacadmin