Docker only maps ports to IPv6 but not to IPv4 Start a docker service and only display the ipv6 port information. IPv4 has no port information, which makes it impossible to access the service externally through IPv4, and reports a Connection refused error Workaround Disable ipv6 on the server vim /etc/default/grub Add GRUB_CMDLINE_LINUX="ipv6.disable=1 crashkernel=auto spectre_v2=retpoline rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet" Reconfigure grub and restart the server grub2-mkconfig -o /boot/grub2/grub.cfg reboot WARNING: bridge-nf-call-iptables is disabled
Workaround vim /etc/sysctl.conf # Add the following two lines net.bridge.bridge-nf-call-ip6tables = 1 net.bridge.bridge-nf-call-iptables = 1 # Then make it effective sysctl -p /etc/sysctl.conf # Verify docker info Docker Acceleration Recommend using Alibaba Cloud Docker to accelerate Usage process: https://cr.console.aliyun.com/cn-hangzhou/instances/repositories Find the image accelerator sudo mkdir -p /etc/docker sudo tee /etc/docker/daemon.json <<-'EOF' { "registry-mirrors": ["https://sziho4ql.mirror.aliyuncs.com"] } EOF sudo systemctl daemon-reload sudo systemctl restart docker The above is the detailed content of solving common Docker problems. For more information about solving Docker problems, please pay attention to other related articles on 123WORDPRESS.COM! You may also be interested in:
|
<<: Vue+Element UI realizes the encapsulation of drop-down menu
>>: Vue implements the sample code of adding, deleting, modifying and checking the tree structure
Table of contents 1. Analyzing MySQL from a macro...
Adding the attribute selected = "selected&quo...
MySQL Bin log data recovery: accidentally delete ...
Preface Since the most important data structure i...
How to solve the problem of forgetting the root p...
Table of contents What are spread and rest operat...
This article example shares the specific code for...
Table of contents 1. Register an account on Baidu...
1. Download Download mysql-5.7.19-linux-glibc2.12...
Linux installation JDK1.8 steps 1. Check whether ...
Design the web page shown above: <!DOCTYPE htm...
User table, ID number must be unique, mobile phon...
Preface I recently wanted to learn CocosCreator, ...
Async Hooks is a new feature of Node8. It provide...
Recently, I found that after using the docker loa...