Your user is not allowed to talk to the Docker daemon
The daemon socket is owned by root and the docker group. A user outside that group gets permission denied for every command, including docker ps.
Add yourself to the group (sudo usermod -aG docker $USER) and then log out and back in — group membership is only picked up by a new session. On shared HPC systems Docker is usually not permitted at all; use Singularity/Apptainer there instead.