Member-only story
Run NMState within a Docker container on an Ubuntu machine
Objective:
I’m attempting to run nmstate within a container in an Ubuntu machine in this blog (Ubuntu Box info below). I partially succeeded, in that I was able to perform several commands but was unable to patch network configuration changes. Why? Continue reading to find out.
$ uname -a
Linux goglides 5.4.0-72-generic #80~18.04.1-Ubuntu SMP Mon Apr 12 23:26:25 UTC 2021 x86_64 x86_64 x86_64 GNU/Linux
NMState
Here is my understanding about NMState after reading a few articles (article references given below in reference section.)
NMState is a library that maintains a host’s network in a declarative manner. Simply said, it’s a networking configuration tool that uses the NetworkManager API to apply the appropriate networking configuration state on a host.
NMState has a number of advantages.
- Since NMState configure hosts following a declarative approach, it satisfies business demands for host networking management via a northbound declarative API and the tool applies the configuration through a southbound provider.
- Multiprovider support in the future; presently, NetworkManager is the only provider supported.
- NMState aids in the enablement of Infrastructure as Code and facilitates networking job automation.
- It also aids in the reduction of potential human error-related…