Pull redis mirror related operations through docker

One, docker install mysql: operation

Two, perform operations

Pull the latest version of Redis image

docker pull redis

Insert picture description here

Three, the installation is complete

  • View local mirror
docker images

Insert picture description here

  • Start the container
docker run -itd --name redis-test -p 6379:6379 redis

Four, test run

docker ps #查询你的容器号

Insert picture description here

docker exec -it 684a0eaebf00 redis-cli

5. Successful execution

Insert picture description here

Guess you like

Origin blog.csdn.net/weixin_44763595/article/details/109863840