docker's official website: https: //hub.docker.com/search q = redis & type = edition & offering = enterprise?
1. Pull the latest Redis: Docker pull Redis : Latest
2. View pull down the redis: docker images
3. Start redis
6379 -p: 6379 : 6379 port to host the 6379 container port mapping service. It can be directly through external ip host: 6379 Redis access to services
4. Check after the start redis
The containers enter redis
docker exec -it myredis bash: docker exec -it xxx bash is a command into the vessel, xxx is the name of the service can also be id containers, such as access to the MySQL container: docker exec -it xxmysql bash
6. Start redis
The above operation is docker in accordance with the method of the redis, if Ali cloud-based services, the need to enter the console, add a port outside the network can access the 6379's.
---------------------------------------------------------------------------------------------------------------------------------------------------------
Operation docker common commands:
Mirror query: docker seacher xxxx
Download: dcoker pull xxx
View the downloaded image: docker images
Run docker: to redis an example: Docker RUN -d -p 6380: 6379 --name = myredis redis
Into the container: docker exec -it myredis bash
Stop container: docker stop xxxx
Delete container: docker rm xxx
Remove the mirror: docker rmi xxx
These are the basic operations common; Command Reference for more official website: https://docs.docker.com/engine/reference/commandline/docker/
What is the problem, we welcome the comments below