Automatic startup of Samba service in Docker containers

ar flag

I have a Raspberry on which docker is running. I created an Ubuntu container (current version) on which I installed Samba.

Samba works fine, I start it and my pcs access the shares.

I then set the Docker container to start automatically along with the raspberry, and via systemd I enabled the smbd service of samba.

But when the container starts the smbd service does not start, I always have to start it by hand

This is the result of systemctl status smbd

smbd.service - Samba SMB Daemon
    Loaded: loaded (/usr/lib/systemd/system/smbd.service, enabled)
    Active: failed (failed)
Artur Meinild avatar
vn flag
There are some things in your post that doesn't make sense to me. 1) Docker containers and their services start automatically, so no need to do anything special. 2) Docker containers don't use `systemd` by default. 3) I fail to see the purpose of running Samba inside a Docker container. To me, your question raises even more questions...
I sit in a Tesla and translated this thread with Ai:


Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.