preface
Error when docker installs redis and starts
Solution:
Modify profile
vim redis.conf
Comment out??Code
Restart redis:
docker start redis
If the connection using the local client is unsuccessful, you can only enter the redis shell to modify the configuration file:
root@iZ8vb4poq26tme4bwexb4lZ:/usr/local/docker/redis# ps -ef | grep redis
redis 2605 1 1 2020 ? 2-18:12:56 /usr/bin/redis-server *:20000
root 5834 24173 0 21:18 pts/0 00:00:00 grep --color=auto redis
999 20678 20643 0 20:52 ? 00:00:04 redis-server 127.0.0.1:6379