ALSA: No soundcards found

I am tring to play audio files on Raspberry Pi 4 using SoLoud.
however after running dmseg I get a message that the sound card in not found.

[    0.707438] ALSA device list:
[    0.707452]   No soundcards found.

Any ideas on how to fix or debug it?

Hello, what kind of sound card do you have connected? Is it a HAT or via USB?

I am using audio jack on the raspberry pi.

Raspberry Pi 4 is using HDMI as default audio output. I got the audio working by removing vc4-kms-v3d from Define DT overlays in Device configuration.

The previous message is still showing however the sound is working now.

I also had to link the audio device to the container in docker-compose.yml

version: '2.1'

services:
  floor-driver:
    build:
      context: ./
    privileged: true
    devices:
      - "/dev/snd:/dev/snd"
    environment:
      - UDEV=1