[Docker]WARNING: IPv4 forwarding is disabled. Networking will not work.
[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表明成功