Using Digi Containers in Digi Solutions

The Digi Accelerated Linux operating system (DAL OS) supports a variety of demanding applications through our enterprise (EX), industrial (IX), and transportation (TX) routers, as well as console servers and USB-connected devices. Digi Containers simplify and centralize the process of building, deploying and running custom applications on DAL OS devices managed with Digi Remote Manager® (Digi RM) as the central portal.

With DAL OS embedded on these devices, developers can leverage an extensive set of software features and capabilities built into firmware that is signed, vetted, and distributed as part of our Digi Trustfence®-approved standards. To run applications not already in the distributed firmware, the most streamlined and standardized option is to create a virtual space through Lightweight Linux Containers (LXCs).

Using Containers-as-a-Service in conjunction with Digi Remote Manager (Digi RM) can enable you to optimize and extend the capabilities of your Digi connectivity solutions in a number of use cases.

Container-as-a-Service use cases

What Are Digi Containers?

Digi Container Service is an add-on service that simplifies and centralizes the process of building, deploying and running custom applications on devices managed with Digi RM. With a Digi RM license and Digi Containers, you can deploy containerized programs or Python applications at scale and on any device running DAL OS.

Implemented via Lightweight Linux Containers (LXC), Digi Container Service makes the process portable, scalable, secure, fast and efficient. Digi empowers companies to orchestrate and manage a complex series of containers in various structures and configurations across enterprise, industrial, transportation and other use cases.

What's an LXC Container?

Linux Control Groups (cgroups) can define and control the access that various processes have. Cgroups can stop processes that access hardware (such as CPUs, devices, RAM, disk, or I/O), or other processes. This essentially creates a “sandbox” for your process so it can't harm the running system. By combining cgroups and chroot, we create a device with its own root filesystem that can't interfere with or harm the device it is running on. This is called a container.

Because containers are lightweight and portable, they offer both security and flexibility, while enabling you to expand upon the capabilities of your Digi solution to support your needs.

LXC is a set of tools that create and manage the container, which is, essentially, a virtual machine. The only thing in common with the physical device is the running kernel. This means that processes running inside a container run at native speed, as if they are actually running directly on the host device.

Benefits of Digi Containers

Container-as-a-Service benefits

Containers offer numerous benefits:

  • Portability – A containerized application holds everything it needs to run and can be deployed in private and public clouds. You gain flexibility because you can easily move workloads among environments and providers. 
  • Scalability – Containers can scale horizontally – i.e., you can “clone” identical containers within the same cluster to expand capacity/throughput as needed. By running only what you need when you need it, costs decrease significantly. 
  • Increased security – By design, containers are inherently isolated from one another. If one container is compromised, others won’t be affected.
  • Speed – That autonomy from the operating system gives you greater control. You can start/stop a container in seconds. You achieve faster development and operational speed, and a faster and smoother user experience.
  • Efficiency – Since a separate operating system isn’t required, containers require fewer resources than VMs. You can run several containers on a single server. Less hardware means lower costs and fewer points of failure.

Loading a Container in the DAL OS

The Digi Containers add-on license must first be enabled for your account in Digi Remote Manager. Contact your Digi sales representative for information.

To load a container on a DAL OS device, you simply need the root filesystem in either squashfile (.sqfs) or gzipped tar file (.tgz) format. This LXC container can be loaded as part of the Configuration template in Digi RM, which will then load the container(s) onto one or multiple devices linked to that template. When you add the container, the configuration is automatically generated within the Configuration template in Digi Remote Manager. You can edit this configuration to enable the required setup for this container.

Adding a container

 

Running Containers in DAL OS

Once the container is loaded onto the Digi device through Digi Remote Manager, you have options within Digi Remote Manager or the Digi device itself to run the container either automatically or manually.   See the following two links to our user guides for running Digi Containers:

Note:  If a container is run as persistent, the root filesystem is written to the DAL OS flash, and is fully writable inside the container. Writing to the flash should be minimized to extend the life of the flash. Running a container in non-persistent mode will extract a clean filesystem each time the container is run. Non-persistent filesystems are based in RAM and will be lost when the container is stopped. This means an external actor can't compromise security on the DAL device as each time the container is run, it starts from a clean state.

Monitoring Digi Containers

The status of Digi Containers can be viewed under the Metrics tab for the device in Digi RM or using the SCI commands of Digi Remote Manager’s API.

Monitoring Digi containers

 

Digi containers in Digi Remote Manager dashboard

The datapoints shown under the Metrics tab can be monitored and alerted on for any changes in state by setting up an Alert condition in Digi Remote Manager.  See this documentation for more details on setting up alerts and receiving notifications.

Conclusion

Implementing containers-as-a-service via Lightweight Linux Containers provides users of DAL OS-based Digi routers a securely environment develop, distribute, and run custom programs or python applications. For more details on utilizing containers on DAL OS devices, refer to the Container-as-a-Service user guide.

Next Steps

 

Learn More About Remote Management Options
Visit Shop.Digi.com

Related Content

Digi Containers: Rapidly Deploy, Monitor, and Manage Applications at Scale Digi Containers: Rapidly Deploy, Monitor, and Manage Applications at Scale Digi Containers are available as an add-on service that simplifies and centralizes the process of building, deploying and running custom applications on devices managed with Digi Remote Manager®. VIEW PDF Digi Remote Manager 101: Managing Containers in Digi RM Digi Remote Manager 101: Managing Containers in Digi RM With Digi Remote Manager®, you can quickly and easily create custom applications via our Digi Containers value-added service... WATCH VIDEO Digi Remote Manager 101: License Management Digi Remote Manager 101: License Management Digi Remote Manager® has an ever-growing library of add-on licenses to make your devices and processes run smoothly. In this... WATCH VIDEO Digi Containers: The Best Way to Build, Deploy and Manage Custom Applications Digi Containers: The Best Way to Build, Deploy and Manage Custom Applications Today, the multitude of hardware devices and software application programs are daunting — creating a costly and cumbersome... RECORDED WEBINAR Introducing Digi Containers Introducing Digi Containers Managing the increasing complexity of IoT applications just got easier. Meet Digi Containers, a value-added service available... WATCH VIDEO Press Release Digi International Launches Digi Containers to Improve Development, Operation, and Management of Custom Applications on Digi Cellular Routers Latest Move Underscores Digi’s Commitment to Software by Extending and Enhancing Digi’s Edge-to-Cloud Software Stack Anchored... READ PRESS RELEASE Digi Containers Datasheet Digi Containers Datasheet Digi Remote Manager enables deployment of custom applications via containers VIEW PDF Digi Containers Digi Containers Digi Remote Manager® enables deployment of custom applications via lightweight Linux containers VIEW PRODUCT New Digi Software Updates for DAL OS 22.8 Firmware and Digi Remote Manager New Digi Software Updates for DAL OS 22.8 Firmware and Digi Remote Manager DAL OS is fully integrated with Digi Remote Manager®, our cloud-based remote configuration and management tool, and together... READ BLOG New Capabilities for Digi Routers in DAL OS 22.5 Firmware New Capabilities for Digi Routers in DAL OS 22.5 Firmware Digi is continually enhancing the value and capability our customers derive from their Digi solutions. In this blog post we... READ BLOG Software Defined Networks For More Secure and Robust Networking Software Defined Networks For More Secure and Robust Networking Software-defined networking (SDN) features have become key for modernizing network architecture for better reliability, improved security and lower operational costs. VIEW PDF Wait! Don’t Deploy Connected Devices Without This Wait! Don’t Deploy Connected Devices Without This How you configure connected devices prior to deployment can make all the difference in your ability to gain critical insights... READ BLOG Meet the Digi Accelerated Linux Operating System (DAL OS) Meet the Digi Accelerated Linux Operating System (DAL OS) DAL OS delivers sophisticated device functionality I WANT THAT Digi Remote Manager: Your IoT Command Center Digi Remote Manager: Your IoT Command Center With the complexity of IoT networks growing daily, it’s important to get the tools in place to manage them. Digi Remote Manager... WATCH VIDEO VLAN Trunking Example VLAN Trunking Example The primary benefit of the VLAN features on the Digi routers is to provide multiple LAN networks on a single Ethernet port... READ BLOG Digi Remote Manager Digi Remote Manager Configure, Deploy and Manage Remote Assets Securely VIEW PRODUCT