Docker API is always returning empty JSON even when there are images in the server

When I do "docker images" in my server, there are multiple images coming up. The same when tried to access through an api "curl http://localhost:2355/images/json" returns []. Does anyone know why is this happening?

Source: Docker Questions