我该如何在这种情况下执行redis中的“FLUSHALL”操作?
在PopOs 21.0.4上通过docker运行redis,使用以下docker-compose.yml文件进行配置。
在PopOs 21.0.4上通过docker运行redis,使用以下docker-compose.yml文件进行配置。
version: "2.4"
services:
redis:
image: redis:5-alpine
command: redis-server --save "" --appendonly yes
restart: always
volumes:
- "${PWD}//redis/data:/data"
ports:
- "6379:6379"
连接到 redis-cli 并发出 FLUSHALL (或 FLUSHDB) 命令,我收到了以下错误:
127.0.0.1:6379[1]> FLUSHALL
(error) LOADING Redis is loading the dataset in memory
这里是 Docker 版本:
Client: Docker Engine - Community
Version: 20.10.10
API version: 1.41
Go version: go1.16.9
Git commit: b485636
Built: Mon Oct 25 07:43:13 2021
OS/Arch: linux/amd64
Context: default
Experimental: true
Server: Docker Engine - Community
Engine:
Version: 20.10.10
API version: 1.41 (minimum version 1.12)
Go version: go1.16.9
Git commit: e2f740d
Built: Mon Oct 25 07:41:20 2021
OS/Arch: linux/amd64
Experimental: false
containerd:
Version: 1.4.11
GitCommit: 5b46e404f6b9f661a205e28d59c982d3634148f8
runc:
Version: 1.0.2
GitCommit: v1.0.2-0-g52b36a2
docker-init:
Version: 0.19.0
GitCommit: de40ad0