I'm trying to run an electron app inside a docker container on my MacOS. I need "network manager" for the project because the electron app has a dependency on it. I am using Node 14 as base image.
I installed network manager using "apt install network-manager" and it installed:
nmcli tool, version 1.14.6
But when I run nmcli
command, I get the error:
Error: Could not create NMClient object: Could not connect: No such file or directory.
I've tried looking around a lot, even asked AI tools for help, but I can't find a proper explanation or any solution.
I tried running the project on Ubuntu 16.04
base image and there after installing network-manager
, the nmcli
command worked fine (nmcli tool, version 1.2.6
). So I decided to use that but only to realise that the electron app I am trying to setup, has a peer dependency to libgpiod
package and that's not available for Ubuntu 16. I tried building it from source, didn't work.
I also tried to compile network-manager
ver 1.2.6 in my node image, but that didn't work either.
Could someone help me understand how I can get nmcli
command work in my node image? Or explain me why would it not work in node image but would work in ubuntu image?