Home  >  Article  >  Operation and Maintenance  >  What should I do if I cannot access the Internet after installing docker?

What should I do if I cannot access the Internet after installing docker?

王林
王林Original
2020-04-15 11:00:265907browse

What should I do if I cannot access the Internet after installing docker?

The solution steps are as follows:

1. Edit the virtual machine file:

vim /etc/sysctl.conf

2. Add the following configuration

net.ipv4.ip_forward=1

3. Restart the service

systemctl restart network

4. Check whether the properties have been modified successfully

sysctl net.ipv4.ip_forward

Recommended tutorial: docker tutorial

The above is the detailed content of What should I do if I cannot access 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