title: .Net5, SAP & docker: UUID daemon (uuidd) is not active
body: <p>I am trying to run a .Net 5 application in an docker container. This Application uses the <a href="https://support.sap.com/en/product/connectors/nwrfcsdk.html" rel="nofollow noreferrer">SAP NetWeaver RFC SDK</a> to connect to a SAP system. However it reports the error</p>
  <blockquote>
  <p><a href="https://userapps.support.sap.com/sap/support/knowledge/en/2558132" rel="nofollow noreferrer">UUID daemon (uuidd) is not active</a></p>
  </blockquote>
  <p>At first I tried to use the microsoft provided runtime image (mcr.microsoft.com/dotnet/runtime:5.0) which produced the error initially.</p>
  <p>Inital docker file</p>
  <pre><code>FROM mcr.microsoft.com/dotnet/runtime:5.0 AS base
  WORKDIR /app
  
  FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
  WORKDIR /src
  # copy everything
  Copy . .
  WORKDIR &quot;/src/SapClientService&quot;
  RUN dotnet restore 
  RUN dotnet build -c Release -o /app/build
  
  FROM build AS publish
  RUN dotnet publish &quot;SapClientService.csproj&quot; -c Release -o /app/publish
  
  FROM base AS final
  WORKDIR /app
  ENV LD_DEBUG=&quot;all&quot;
  ENV LD_DEBUG_OUTPUT=&quot;/debug.txt&quot;
  COPY --from=publish /app/publish .
  ENTRYPOINT [&quot;dotnet&quot;, &quot;SapClientService.dll&quot;]
  </code></pre>
  <p>I then tried to modify the runtime images by installing the runtime myself, so that I can install packages and so on.</p>
  <pre><code>ARG DOTNET_VERSION=5.0.8
  
  FROM amd64/ubuntu:focal as runtime-deps
  
  RUN apt-get update \
      &amp;&amp; DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
          ca-certificates \
          \
          # .NET Core dependencies
          libc6 \
          libgcc1 \
          libgssapi-krb5-2 \
          libicu66 \
          libssl1.1 \
          libstdc++6 \
          zlib1g \
          uuid \ # &lt;- I added this
      &amp;&amp; rm -rf /var/lib/apt/lists/*
  
  ENV \
      # Configure web servers to bind to port 80 when present
      ASPNETCORE_URLS=http://+:80 \
      # Enable detection of running in a container
      DOTNET_RUNNING_IN_CONTAINER=true
  
  # Installer image
  FROM amd64/buildpack-deps:focal-curl as runtime-installer
  ARG DOTNET_VERSION
  
  # Retrieve .NET
  RUN curl -SL --output dotnet.tar.gz https://dotnetcli.azureedge.net/dotnet/Runtime/$DOTNET_VERSION/dotnet-runtime-$DOTNET_VERSION-linux-x64.tar.gz \
      &amp;&amp; dotnet_sha512='8789609f3039dca1d0dc19562f23bc9bfe5d513a2d10639a8a779afe7656447b7ee953f9a8d9d0b07ba6ca4a346770c0efb5a34e5240b5d355d4d8198220e9b1' \
      &amp;&amp; echo &quot;$dotnet_sha512  dotnet.tar.gz&quot; | sha512sum -c - \
      &amp;&amp; mkdir -p /dotnet \
      &amp;&amp; tar -ozxf dotnet.tar.gz -C /dotnet \
      &amp;&amp; rm dotnet.tar.gz
  
  
  # .NET runtime image
  FROM runtime-deps as runtime
  ARG DOTNET_VERSION
  
  ENV DOTNET_VERSION=$DOTNET_VERSION
  
  COPY --from=runtime-installer [&quot;/dotnet&quot;, &quot;/usr/share/dotnet&quot;]
  
  RUN ln -s /usr/share/dotnet/dotnet /usr/bin/dotnet
  
  FROM mcr.microsoft.com/dotnet/sdk:5.0 AS build
  WORKDIR /src
  # copy everything
  Copy . .
  WORKDIR &quot;/src/SapClientService&quot;
  RUN dotnet restore 
  RUN dotnet build -c Release -o /app/build
  
  FROM build AS publish
  RUN dotnet publish &quot;SapClientService.csproj&quot; -c Release -o /app/publish
  </code></pre>
  <p>I used the content of the <a href="https://github.com/dotnet/dotnet-docker/blob/c0e8be8a44b47b1dcc2a5b4b2ebd92022087ac0b/src/runtime-deps/3.1/focal/amd64/Dockerfile" rel="nofollow noreferrer">ms-runtime-deps</a> and <a href="https://github.com/dotnet/dotnet-docker/blob/7b7cb07a09083dc16e5b17b869c326bba3add82d/src/runtime/5.0/focal/amd64/Dockerfile" rel="nofollow noreferrer">ms-runtim</a> dockerfiles as a base.</p>
  <p>I tried installing the package <code>uuid</code> (which worked) but the <code>uuidd</code> still is not accesible.</p>
  <p>So the central question would be where do I get this <code>uuidd</code> deamon from and how do I install/setup/start it.</p>