To start the container
docker run -d --rm -p 8888:8888 --name druid swal4u/druid:v0.15.1.2
To stop the container
docker stop druid
If you want to have data persistence, you must declare volume folder.
docker run -d --rm -p 8888:8888 -p 8082:8082 -v $PWD/broker/runtime.properties:/usr/local/druid/conf/druid/single-server/micro-quickstart/broker/runtime.properties --name druid swal4u/druid:v0.15.1.2
My new file runtime.properties contains additional lines at the end of original file.
# SQL properties
druid.sql.planner.useApproximateCountDistinct=false
cd query
curl -XPOST -H'Content-Type: application/json' http://127.0.0.1:8082/druid/v2/sql/ -d @count_page.json
[{"NumberOfPages":35143}]