Added solution for host network mode in Ubuntu 20.10+.

This commit is contained in:
Vladimir Chebotarev 2021-05-07 23:36:15 +03:00 committed by GitHub
parent 01e99ab72e
commit a39314949e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,3 +146,11 @@ sudo service docker stop
sudo bash -c 'rm -rf /var/lib/docker/*'
sudo service docker start
```
#### `iptables-nft`
On Ubuntu 20.10 and later in host network mode (default) one may encounter problem with nested containers not seeing each other. It happens because legacy and nftables rules are out of sync. Problem can be solved by:
```
sudo iptables -P FORWARD ACCEPT
```