docker pull redis:6.0
mkdir -p /mydata/redis/conf
echo "appendonly yes" >> /mydata/redis/conf/redis.conf
docker run -p 6379:6379 --name redis -v /mydata/redis/data:/data -v /mydata/redis/conf/redis.conf:/etc/redis/redis.conf -d redis:6.0 redis-server /etc/redis/redis.conf
docker update redis --restart=always
docker exec -it redis redis-cli