Use docker install Redis Tutorial

												**

Use docker install Redis Tutorial

** ## title

installation steps:

1: Search mirror redis
[root @ localhost ~] # docker search redis

Here Insert Picture Description

2 :, pulling download mirrors
[root @ localhost ~] # docker pull redis usually the default is to download the latest version of
Here Insert Picture Description

3: Check all mirrors docker, descriptions have been downloaded well redis

[root@admin //]# docker images
Here Insert Picture Description

3: The starting container image
[the root ADMIN @ //] RUN # Docker --name Redis Redis -d: Latest
6fb1ba029b412e05c8d6ee2cdb8708105ca7439e698d6b5be29a0d84e25e1973

4: docker ps view the operation of the vessel, where bloggers are bloggers running container
Here Insert Picture Description

4: connection, view a container, performed using the mirror redis redis-cli command to connect to the container just started, the host IP address is 172.17.0.1

[root@admin docker]# docker exec -it 6fb1ba029b41 redis-cli
127.0.0.1:6379>
Here Insert Picture Description

Test: ping

Will be: PONG

Next we need to solve switching and remote connection to redis ip's?

The following needs to be improved, bloggers here for the time being as screwed up his head, and also need to check online information! Subsequent follow up ...

===============================================================================

Step8: Redis
handover command line:
[ADMIN the root @ //] # Docker Exec Expediting IT 6fb1ba029b41 the bash
Here Insert Picture Description

quit, quit the process

[root@admin mysoft]# mkdir redis/{conf,data} -p
Here Insert Picture Description

Guess you like

Origin blog.csdn.net/DLLLL_/article/details/91411389