linux系统用docker拉取PG数据库连接windows-nacivat失败

1.产生原因:

Docker报错 WARNING: IPv4 forwarding is disabled. Networking will not work.

1.# docker run -it -p 30001:22 --name=centos-ssh centos /bin/bash

2.WARNING: IPv4 forwarding is disabled. Networking will not work.

修改这个错误

1.# vim /usr/lib/sysctl.d/00-system.conf

2.添加这个文档

net.ipv4.ip_forward=1

3.重启

# systemctl restart network

完成以后,删除错误的容器,再次创建新容器,就不再报错了,数据库连接windows系统的Nacivat也不会报错了

你可能感兴趣的:(linux系统用docker拉取PG数据库连接windows-nacivat失败)