Use of docker redisbloom


Installation and use of redis + redisbloom

  • If you are a Linux development environment, the latest version of redis can be used easily, but if you are a Windows system, then the installation resources of the higher version are very valuable, and docker can quickly solve your worries.


  • Step 1: launch redisbloom with docker

    docker run -p 6379:6379 --name redis-redisbloom redislabs/rebloom:latest
  • Step 2: use redisbloom withredis-cli

    docker exec -it redis-redisbloom bash
    # redis-cli
  • Step 3: start a new bloom filter by adding a new item

    #> BF.ADD newFilter foo
    (integer) 1
  • Step 4: checking if an item exists in the filter

    #> BF.EXISTS newFilter foo
    (integer) 1
  • Step 5: configure password or other related settings> config set requirepass xxxxx
    OK> config set notify-keyspace-events xE
    (error) NOAUTH Authentication required.> auth xxxxx
    OK> config set notify-keyspace-events xE



be careful:

  • When connecting to redis in docker, docker is a separate Linux running environment in windows.
  • The environment has its own address:, so the easiest way to visit is to connect to the website.
  • Port 6379 can be accessed by external connection when it is opened in gateway of virtual machine.