Home > Article > Operation and Maintenance > Unable to connect to the Internet after installing docker
How to solve the problem that docker cannot connect to the Internet:
Edit the virtual machine file: vim /etc/sysctl.conf
Add: net.ipv4.ip_forward =1
Restart the service: systemctl restart network
Check whether the properties are modified successfully: sysctl net.ipv4.ip_forward
For more related tutorials, please pay attention to PHP Chinese Netdocker tutorial column.
The above is the detailed content of Unable to connect to the Internet after installing docker. For more information, please follow other related articles on the PHP Chinese website!