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

王林
Release: 2020-04-15 11:00:26
Original
5930 people have browsed it

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
Copy after login

2. Add the following configuration

net.ipv4.ip_forward=1
Copy after login

3. Restart the service

systemctl restart network
Copy after login

4. Check whether the properties have been modified successfully

sysctl net.ipv4.ip_forward
Copy after login

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!

Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template