51

After installing Docker, I am getting an error when I try to run the Hello World example:

Error response from daemon: Cannot start container 4145d0fccd96b904e4ab4413735f1129b8765429bad5be71dc8d5f4c0760666d:
failed to create endpoint high_saha on network bridge:
failed to add the host (veth7f6f907) <=> sandbox (veth788d9dc) pair interfaces: operation not supported

(I have just upgraded my Debian server from Wheezy to Jessie)

Does anyone has an idea why I get this error? Did I missed something during the upgrade?

Thanks for your help.

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
piero-la-lune
  • 513
  • 1
  • 4
  • 4

3 Answers3

196

In my case, the error appears every time I update my Linux kernel. It disappears when I restart the computer.

I am using Arch Linux

Dave M
  • 4,494
  • 21
  • 30
  • 30
whoan
  • 2,427
  • 1
  • 13
  • 13
  • 21
    That is normal, since on a kernel upgrade, all .ko module files in `/usr/lib/modules/{KERNEL_VERSION}` of the running kernel are deleted. Docker needs some tun / tap modules to create the interfaces and trying to load them fails after a kernel upgrade. Rebooting helps because all module files are there for the new kernel. Another work-around would be to re-extract the modules for the old kernel if you still have the pacman package lying around and want to avoid the reboot. – cbley Jun 26 '17 at 06:36
  • 3
    Did you reboot after kernel update? – Daniel Andrei Mincă Oct 31 '17 at 14:44
  • 2
    same here. that made the error disappeared and the container to start properly after reboot. – Nicolas Modrzyk Oct 18 '18 at 05:15
  • Also works on Manjaro. Just reboot. – Fernando Kosh Nov 09 '20 at 23:36
  • 3
    Thanks for this! Good ol' Arch... – Chris Frank Nov 24 '20 at 20:57
  • 1
    btw me too, and thank you for the tip – Ferares May 06 '21 at 11:31
9

You've booted your system with OVH's custom kernel, which is built to OVH's specifications, and may not be suitable for running software you want to run.

Change your dedicated server configuration to boot from the kernel installed on the hard drive provided by your Linux distribution.

OVH boot configuration screen

Michael Hampton
  • 237,123
  • 42
  • 477
  • 940
  • 1
    I installed a new kernel and told Grub to use it. It now works ! Thanks ! – piero-la-lune Nov 25 '15 at 00:46
  • 5
    If should be noted that if you updated to a new kernel but still running on the previous installed version, the this error appear. After rebooting the issues goes away. – Darragh Jul 01 '17 at 15:24
5

I had this same problem (pair interfaces: operation not supported) and I use a custom kernel. For me the cause was a missing module "Virtual ethernet pair device" CONFIG_VETH.

│ CONFIG_VETH:
│ │ This device is a local ethernet tunnel. Devices are created in pairs. When one end receives the packet it appears on its pair and vice versa. │ Symbol: VETH [=m]
│ │ Type : tristate
│ │ Prompt: Virtual ethernet pair device
│ │ Location:
│ │ -> Device Drivers
│ │ -> Network device support (NETDEVICES [=y])
│ │ -> Network core driver support (NET_CORE [=y])

hope it helps

potrodoido
  • 71
  • 1
  • 1
  • 1
    This solved the issue in the context of building my own kernel. Refer to this for other config options: https://blog.hypriot.com/post/verify-kernel-container-compatibility/ – Eric Feb 14 '22 at 13:25