I got to use docker without sudo, but it suddenly stopped working and outputs the following error:
"docker: Cannot connect to the Docker daemon at unix:///home/javierac/.docker/desktop/docker.sock. Is the docker daemon running?."
When I run the command with sudo, it does work. The daemon is also running without errors. I've tried to reinstall docker and I've followed the steps in https://docs.docker.com/engine/install/ubuntu/ and https://docs.docker.com/engine/install/linux-postinstall/.
Does anyone know how can I solve the problem? I attach image of the daemon status:
I'm using Ubuntu 24.04.