Self hosted - MSSQL docker container keeps restarting

I recently installed Bitwarden in Ubuntu 22.04 using the instructions at: Install and Deploy - Linux | Bitwarden Help Center.

When I execute ./ start, all docker containers come up with the exception of the mssql one. I look at the /opt/bitwarden/bwdata/logs/mssql folder and there is no log there to help me understand what the problem could be.

Any suggestions on what to do?

Thank you.

I found out the root cause. The mssql container requires itself 2 GB of memory. The VM I’m running the image had 2 GB of memory. I upgraded to 4 GB of memory and it is working fine.

You can see the logs on the container using docker logs --tail 50 --follow --timestamps container_name
(where container_name is the name of the container that can be obtained by running docker ps).

In my case, the output was clearly a out of memory problem:

2023-09-14T16:19:43.060371957Z sqlservr: This program requires a machine with at least 2000 megabytes of memory.