Alexander from SurrealDB here, I see you are trying to connect to localhost. For local development you need to pull from latest-dev you can see more in the docs here:
latest-dev
https://surrealdb.com/docs/surrealdb/installation/running/docker#run-with-docker