美文网首页
解决docker 容器内访问宿主机“No route to ho

解决docker 容器内访问宿主机“No route to ho

作者: 矛盾迩 | 来源:发表于2020-11-18 16:21 被阅读0次

    请顺序运行以下命令:

    nmcli connection modify docker0 connection.zone trusted

    systemctl stop NetworkManager.service

    firewall-cmd --permanent --zone=trusted --change-interface=docker0

    systemctl start NetworkManager.service

    nmcli connection modify docker0 connection.zone trusted

    systemctl restart docker.service

    相关文章

      网友评论

          本文标题:解决docker 容器内访问宿主机“No route to ho

          本文链接:https://www.haomeiwen.com/subject/xjvciktx.html