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

时间:2020-07-06 21:26:30   收藏:0   阅读:58
[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
[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

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!