Docker containers not working after installing desktop environment

Hello everyone, i had an Ubuntu server running with only the cli. after I installed a desktop environment to have a GUI my Docker containers stopped working correctly.

For example, when I access my Nextcloud website, it asks me to create a new account as if it were a fresh installation. The same issue happens with my other containers. But all my containers still point to the same config files.

Does anyone have any idea what could be causing this and how I can fix it?

Thanks in advance!