將項目部署到docker容器遇到問題?

 啓動項目時報錯: java.net.NoRouteToHostException: No route to host;該問題是由於我從一個容器訪問另外一個容器時被防火牆阻止,解決辦法:    1.設置防火牆規則vi /etc/sysconfig/iptables     2.關閉防火牆;若直接關閉防火牆,啓動容器時會報錯:iptables:No chain/target/match by the
相關文章
相關標籤/搜索