1. 进入容器
docker exec -it 容器id bash
2. 追加密码设置
echo "requirepass 123456" >> /etc/redis/redis.conf
3. 退出容器并重启容器
exit docker restart 容器id
标签:容器,Redis,redis,密码,docker,id From: https://www.cnblogs.com/144823836yj/p/18054965
1. 进入容器
docker exec -it 容器id bash
2. 追加密码设置
echo "requirepass 123456" >> /etc/redis/redis.conf
3. 退出容器并重启容器
exit docker restart 容器id
标签:容器,Redis,redis,密码,docker,id From: https://www.cnblogs.com/144823836yj/p/18054965