One, docker install mysql: operation
Two, perform operations
Pull the latest version of Redis image
docker pull redis
Three, the installation is complete
- View local mirror
docker images
- Start the container
docker run -itd --name redis-test -p 6379:6379 redis
Four, test run
docker ps #查询你的容器号
docker exec -it 684a0eaebf00 redis-cli