Home  >  Article  >  Operation and Maintenance  >  Unable to connect to the Internet after installing docker

Unable to connect to the Internet after installing docker

尚
Original
2020-03-24 10:30:234422browse

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn