docker搭建redis Posted on 2020-11-02 In docker docker docker容器技术 拉取官方的镜像1docker pull redis:4.0 准备挂载文件12mkdir /usr/local/volume/redismkdir /usr/local/volume/redis/data 启动容器123-v /usr/local/volume/redis/redis.conf:/etc/redis/redis.conf \-v /usr/local/volume/redis/data:/data \-d redis:4.0 redis-server --appendonly yes;