I hope you can help me with the following problem:
I have an Ubuntu Server 20.04 server in which I have docker. I did the docker installation exactly as the official docker site says, without snap.
I have to install an openproject image and I did it with the following command which is on the official openproject site.
sudo mkdir -p /var/lib/openproject/{pgdata,assets}
docker run -d -p 8080:80 --name openproject \
-e OPENPROJECT_HOST__NAME=openproject.example.com \
-e OPENPROJECT_SECRET_KEY_BASE=secret \
-v /var/lib/openproject/pgdata:/var/openproject/pgdata \
-v /var/lib/openproject/assets:/var/openproject/assets \
openproject/community:12
At first it installed successfully without any problems and I was able to log into the site. But after restarting the server and trying to do a docker start of the container I get the following error:
Error response from daemon: error while creating mount source path '/var/lib/openproject/assets': mkdir /var/lib/openproject: read-only file system Error: failed to start containers: openproject
I've already tried uninstalling docker completely and reinstalling it but I still get the same error every time I try to start it.
I researched in a lot of places what could be the cause of the error but there are no clear solutions. Generally I saw that it is an error when installing docker with snap but as I said before, my installation is clean as the docker site says.