Add docker instructions to match the quickstart (#173)

Make a oneliner to demo the quick-start code snippets like the NodeJS one.
This commit is contained in:
a10kiloham 2022-09-17 03:02:06 +01:00 committed by GitHub
parent 59be26e55b
commit 78aca01283
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -170,10 +170,16 @@ iwr https://windows.surrealdb.com -useb | iex
Docker can be used to manage and run SurrealDB database instances without the need to install any command-line tools. The SurrealDB docker container contains the full command-line tools for importing and exporting data from a running server, or for running a server itself.
```bash
docker run --rm -p 8000:8000 surrealdb/surrealdb:latest start
docker run --rm --name surrealdb -p 8000:8000 surrealdb/surrealdb:latest start
```
Update the image to the latest version:
For just getting started with a demonstration server running in memory, you can pass the container a basic initialization to set the user and password as root and enable logging and limit access to localhost (do not run this in production!)
```bash
docker run --rm --name surrealdb -p 127.0.0.1:8000:8000 surrealdb/surrealdb:latest start --log trace --user root --pass root memory
```
To update the image to the latest version:
```bash
docker pull surrealdb/surrealdb:latest