Current location - Quotes Website - Team slogan - Solve the problem that CentOS7 docker container mapping port only listens to ipv6.
Solve the problem that CentOS7 docker container mapping port only listens to ipv6.
After the rabbitMQ docker container is put on, check the situation of the 15672 port monitor, and find that you can connect and check the opening of the port, as shown in the following figure:

As you can see, the port 15672 is open, but the IP is ipv6, so we can't access it successfully. The solution is as follows

/etc/default/grub adds IPv6 to GRUB_CMDLINE_LINUX. Disabled = 1.

Reconfigure grub after saving and restart the server.

Finally, as follows