In the container
cat /etc/resolv.conf
Let's set the nameserver properly. If you don't know
nameserver 1.1.1.1
```
Let's set it.
## 2. Is the NAT setting written to iptables?
```bash
sudo iptables iptables -t nat -L
sudo systemctl restart docker.service
```
## 3. Is firewalld set?
The virtual bridge of docker is docker0
```bash
firewall-cmd --permanent --zone=trusted --change-interface=docker0
firewall-cmd --reload
systemctl restart docker
```
Recommended Posts