title: Docker Alpine Samba does not start
body: <p>I build a docker container with alpine, s6 and samba.
  Everything looks fine, but when it start smbd it crashes right before up without anything in logfiles.</p>
  
  <pre><code>added interface eth0 ip=172.17.0.6 bcast=172.17.255.255       
  netmask=255.255.0.0
  loaded services    
  Netbios name list:-
  my_netbios_names[0]="ADD372A5C9D7"
  INFO: Profiling support unavailable in this build.
  Standard input is not a socket, assuming -D option
  Becoming a daemon.
  exit_daemon: STATUS=daemon failed to start: Failed to create session, error code 1
  </code></pre>
  
  <p>s6 run service:</p>
  
  <pre><code>#!/usr/bin/execlineb -P
  smbd --foreground --log-stdout
  </code></pre>
  
  <p>Dockerfile:</p>
  
  <pre><code>FROM alpine:edge
  
  # env variables
  ENV S6_VERSION v1.21.2.1
  
  # install s6-overlay
  ADD https://github.com/just-containers/s6-overlay/releases/download/${S6_VERSION}/s6-overlay-amd64.tar.gz /tmp/
  RUN tar xzf /tmp/s6-overlay-amd64.tar.gz -C /
  
  RUN apk add --no-cache \
      bash shadow \
      samba-common-tools \
      samba-client \
      samba-server \
      &amp;&amp; rm -rf /var/cache/apk/*
  
  # add local files
  COPY root/ /
  
  EXPOSE 445/tcp
  
  CMD ["/init"]
  </code></pre>