运行在 docker 容器中的springboot服务需要访问宿主机SFTP服务的6688端口。
方法:将localhost改为host.docker.internal
例如,springboot的application.properties配置如下:
sftp.host=host.docker.internal
sftp.username=XXXXX
sftp.password=XXXXX
sftp.port=6688
运行在 docker 容器中的springboot服务需要访问宿主机SFTP服务的6688端口。
方法:将localhost改为host.docker.internal
例如,springboot的application.properties配置如下:
sftp.host=host.docker.internal
sftp.username=XXXXX
sftp.password=XXXXX
sftp.port=6688