Failed to find plugin "bridge" in path

I am running nomad 0.10-beta1. I’ve tried enabling the bridge networking

job "foobar" {
    datacenters = ["dc1"]
    group "foo" {
        network {
             mode = "bridge"
         }

But when I do I get error:

failed to setup alloc: pre-run hook "network" failed: failed to configure networking for alloc: failed to find plugin "bridge" in path [/opt/cni/bin]

What is going on?

1 Like

You must enable the CNI plugin

$ curl -L -o cni-plugins.tgz https://github.com/containernetworking/plugins/releases/download/v0.8.1/cni-plugins-linux-amd64-v0.8.1.tgz
$ sudo mkdir -p /opt/cni/bin
$ sudo tar -C /opt/cni/bin -xzf cni-plugins.tgz
5 Likes

fwiw, I have used the 0.8.2 version of the plugins as well. For my basic setup, it worked fine.

Saved my Month!!!
I really mean it mannn.
Thanks a lot @spuder