菜鸟笔记--docker: Error response from daemon: failed to create endpoint vigorous_euclid on network......

  安装docker后第一次执行sudo docker run hello-world,出现如下报警。

root@renesas:~# sudo docker run hello-world
Unable to find image 'hello-world:latest' locally
latest: Pulling from library/hello-world
256ab8fe8778: Pull complete
Digest: sha256:49a1c8800c94df04e9658809b006fd8a686cab8028d33cfba2cc049724254202
Status: Downloaded newer image for hello-world:latest
docker: Error response from daemon: failed to create endpoint vigorous_euclid on network bridge: failed to add the host (veth44c53e5) <=> sandbox (veth46a40dd) pair interfaces: operation not supported.
ERRO[0017] error waiting for container: context canceled

  一般Google的结果,大多是让你去升级内核,但是这个是很扯淡的,毕竟嵌入式不能随便更换内核。
  这个错误的引起原因是由于VETH虚拟网桥没有配置导致的,可以进行如下操作。

1、首先,回到你的内核源码目录,执行

make menuconfig

2、打开配置界面后,找到device drivers选项。
菜鸟笔记--docker: Error response from daemon: failed to create endpoint vigorous_euclid on network......_第1张图片
菜鸟笔记--docker: Error response from daemon: failed to create endpoint vigorous_euclid on network......_第2张图片
菜鸟笔记--docker: Error response from daemon: failed to create endpoint vigorous_euclid on network......_第3张图片
  按 Y,将virtual ethernet pair device选中,之后save保存
3、编译内核后重新移植就可以了。
菜鸟笔记--docker: Error response from daemon: failed to create endpoint vigorous_euclid on network......_第4张图片

  如果还是不行的话,建议你检查一下menuconfig下的这个配置

 -> Device Drivers
 -> Network device support (NETDEVICES [=y])
 -> Network core driver support (NET_CORE [=y])

  这两个选项一定也要选中

你可能感兴趣的:(菜鸟笔记--docker: Error response from daemon: failed to create endpoint vigorous_euclid on network......)