Start SurrealDB in Docker



docker volume create my-surreal-db


docker run --detach --restart always --name surrealdb -p 127.0.0.1:8000:8000 --user root -v$(pwd):/external -v my-surreal-db:/database surrealdb/surrealdb:v2.0.4 start --user root --pass root --log trace file://database

For the current list of available docker tags check SurrealDB on the Docker HUB.


docker stop surrealdb


docker container rm surrealdb


docker volume remove my-surreal-db