Skip to content

Running `nmcli` in a container without installing the full NetworkManager suite

License

Notifications You must be signed in to change notification settings

balena-io-experimental/nmcli-no-network-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Use nmcli from a Debian container without installing NetworkManager

This repo demonstrates how to download, extract and run the nmcli utility from the network-manager Debian package without the need for installing the full NetworkManager suite.

Internally nmcli communicates through D-Bus with the NetworkManager service running on the host OS. That is to say nmcli can be run inside a resin container without any need for running NetworkManager service next to it. Moreover installing NetworkManager inside the application container is dangerous if the NetworkManager service is not masked. Downloading and extracting nmcli is a safer approach that additionally saves bytes.

For more details please check the Dockerfile template of this project.

About

Running `nmcli` in a container without installing the full NetworkManager suite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages