Home > Back-end >  The Docker SrpingBoot projects don't have access to redis
The Docker SrpingBoot projects don't have access to redis

Time:10-29

Locally by Redis outside network IP and password access



But in the server's docker container, connecting the redis will go wrong



On the server into the redis open container internal monitoring, as you can see by the local project access redis record



But will this project into the mirror, after the docker up, connect the redis, will be submitted to the second picture of the error, other mysql, the rabbitmq is normal, is very strange,,,,

CodePudding user response:

Enter your docker container, Telnet to the network

CodePudding user response:

reference 1 floor faith. Huan response:
enter your docker container, Telnet on network under?

Docker network must be connected, outside the container application through web site access mysql database are accessible

CodePudding user response:

You the redis configuration file xx. The conf produets protected mode? Protected mode - no

CodePudding user response:

Apparently network impassability,
Or to enter the docker container, try Telnet

Docker exec - it docker id/bin/bash

CodePudding user response:

reference fancy555 reply: 3/f
you redis configuration file xx. Conf produets protected mode? Protected mode - no

Off the

CodePudding user response:

references 4 floor water 2 reply:
is clearly network impassability,
Or to enter the docker container, try Telnet

Docker exec - it docker id/bin/bash

The network is connected
I have a spring in the local boot project, the configuration of redis redis port, the port is that the server can even, explain the docker container redis network is
In the server's docker container running spring boot project, configure MySQL, the rabbitmq is remote, access to the MySQL data, consumer information can be in the queue, illustrate docker container spring boot project network connection
  • Related