Home  >  Article  >  Operation and Maintenance  >  What should I do if the docker image cannot be accessed after it is started?

What should I do if the docker image cannot be accessed after it is started?

王林
王林Original
2020-04-04 14:14:493286browse

What should I do if the docker image cannot be accessed after it is started?

Solution:

Edit the configuration file

vi /etc/sysctl.conf

or

vi /usr/lib/sysctl.d/00-system.conf

Add the following code:

net.ipv4.ip_forward=1

Restart the network service

systemctl restart network

Check whether the modification is successful

sysctl net.ipv4.ip_forward

If the return value is "net.ipv4.ip_forward = 1", it means success.

Recommended related tutorials: docker tutorial

The above is the detailed content of What should I do if the docker image cannot be accessed after it is started?. 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
Previous article:Can docker use oracle?Next article:Can docker use oracle?