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

One recurrent topic that has to be addressed in the first place is to setup docker in our machine.

For that, you can check this guide or if you want to have a general introduction on how to use adapt configuration files you can check this guide.

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: