How to use Blackspace with Docker
Docker is great to get started in minutes with just a few commands. Follow this guide to set up and start Blackspace locally. By the end, you will be able to send and query data to backend services using the REST API.
Install Docker
Before we start, you will need to install Docker. You can find guides for your platform on the official documentation.
Blackspace Backend Service Images
With Docker installed, you will need to pull All Blackspace Backend Service Images and create a
container. You can do both in one command using docker run
:
Container status
You can check the status of your container with docker ps. It also lists the ports we published:
Importing data and sending queries
🎉 Congratulations, you have a running QuestDB server. You can now start to interact with it:
Data persistence
Restart an existing container
When you stop the container, it will not be removed by Docker. This means that you can restart it anytime and your data will be accessible:
docker run
Re-run If you re-run the command:
A new container will be created for the microservice image. This means that the container will be fresh, any data you may have created previously won't be accessible.