Docker Community Forums

Share and learn in the Docker community.

Network Manager (nmcli) Error Inside Container


(Imxron) #1

Hi,

Network-Manager does not seem to work inside of a container.

  1. $ docker run -it -d ubuntu:17.10
  2. $ docker exec -it bash
  3. $ apt update && apt install -y network-manager
  4. $ nmcli

Error: Could not create NMClient object: Could not connect: No such file or directory.

I tried spinning up a “privileged” container to see if network manager maybe needed access to something on the host. Also tried ubuntu 16:04 and debian images. Network Manager works fine on my host machine.

Thoughts?