docker redis 设置密码并启动
docker run --name redis -p 6379:6379 -id redis --requirepass "1234"
登录 redis
docker run -it redis redis-cli -h 172.17.0.1
查进程
docker ps
docker run --name redis -p 6379:6379 -id redis --requirepass "1234"
docker run -it redis redis-cli -h 172.17.0.1
docker ps