Docker install Redis tutorial
Docker installation tutorial: original
Docker pulls Redis
View redis
docker search redis
Pull the latest redis
docker pull redis:latest
View all downloaded images of docker
docker images
docker install Redis
Create redis container
docker run -p 6379:6379 --name redis -d docker.io/redis:latest
Check if docker has a redis container
docker ps | grep redis
Check whether all containers started by docker contain redis
docker ps
Check the installed Redis
Verify that Redis is installed successfully
Enter redis to add objects
docker exec -it 容器名或容器编号 /bin/bash
redis-cli
set test HelloWorld
Exit redis
exit
Check whether Redis supports remote
Enter the IP path and port number to check redis. If it doesn’t show, check whether the firewall opens port 6379 or close the firewall.
Check whether the object is saved by yourself.
Installation is complete