Unable to connect to the Internet after installing docker

Release: 2020-03-24 10:30:23
Original
4612 people have browsed it

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!

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