SQL Server 2022 exits immediately after starting

SQL Server 2022 container works fine if I do not specify a mount directory as a data volume, but exits immediately if I do using options below
‘-v /mssql:/var/opt/mssql -v /mssql/data:/var/opt/mssql/data -v /mssql/log:/var/opt/mssql/log -v /mssql/secrets:/var/opt/mssql/secrets’

I’ve tried moving /mssql directory around to different places, owned by user or root, but doesn’t seem to help.
I have the same issue for 2019 version as well.
Any ideas what I might be doing wrong?