Mellanox / docker-sriov-plugin

Docker networking plugin for SRIOV and passthrough interfaces
Apache License 2.0
80 stars 19 forks source link

gateway could not be found #13

Open niernzc opened 5 years ago

niernzc commented 5 years ago

I can run the plugin and create a docker network without problem,but when I run a docker container there is something wrong. [root@power27 glog]# docker run -v /run/docker/plugins:/run/docker/plugins -v /etc/docker:/etc/docker -v /var/run:/var/run --net=host --privileged -dit rdma/sriov-plugin f90255c141c76351f69e50506deaee1be2b4ce3d7482f4eef8e85c91fa8d3ac1 [root@power27 glog]# docker network create -d sriov --subnet=194.168.1.0/24 -o netdevice=ib0 mynet 66401367fb5291472d93cec3ea7fde9d91378fa1bca76eeab633efa14ec3090f [root@power27 glog]# docker run --net=mynet -itd --name=web nginx 88895a94a4503286dcd38078fcc87b860540327c37a534bd95cac0a39bed6825 docker: Error response from daemon: OCI runtime create failed: container_linux.go:344: starting container process caused "process_linux.go:424: container init caused \"process_linux.go:407: running prestart hook 0 caused \\\"error running hook: exit status 1, stdout: , stderr: time=\\\\\\\"2019-09-10T16:56:38+08:00\\\\\\\" level=fatal msg=\\\\\\\"failed to set gateway while updating gateway: route for the gateway 194.168.1.1 could not be found: network is unreachable\\\\\\\"\\\\n\\\"\"": unknown. any idea?