首页 > Web开发 > 详细

[Docker]WARNING: IPv4 forwarding is disabled. Networking will not work.

时间:2020-07-06 21:26:30      阅读:57      评论:0      收藏:0      [点我收藏+]
[root@mirrors ~]# docker run -d --name nexus3 --restart=always -p 8081:8081 -v nexus-data:/nexus-data sonatype/nexus3
WARNING: IPv4 forwarding is disabled. Networking will not work.
4bc57075c2e67ece61afe2d2fa565d312a319f9f421634691b29087f458181cc
  • IPv4转发失败
[root@mirrors ~]# echo ‘net.ipv4.ip_forward=1‘ >> /etc/sysctl.conf
[root@mirrors ~]# sysctl net.ipv4.ip_forward
net.ipv4.ip_forward = 1      # 1表明成功

END

[Docker]WARNING: IPv4 forwarding is disabled. Networking will not work.

原文:https://www.cnblogs.com/leoshi/p/13257312.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!