I have upgraded from Ubuntu 22.04 to 24.04 and docker ps
not returing any error or result. Before in 22.04 it was working perfectly. Now it just stuck at command. No Timeout, no Eerror.
But with sudo it works with sudo. My user is in already in docker group. Everything seems on place.
From Linux post-installation steps for Docker Engine
Check that docker group exists:
If it doesn't exist, create it:
Add your user to the docker group:
The changes are active when you have logged out and logged in again, or executed the command:
Now try without sudo:
Try setting your docker context to the default:
You can also take a look at which contexts you have
Other than that, I would try to run a container without the
sudo
command and then check the running containers withoutsudo
. Could be some discrepancy in how the files are stored when executing it with and without root privileges.