<img height="1" width="1" style="display:none;" alt="" src="https://px.ads.linkedin.com/collect/?pid=658098&amp;fmt=gif">
Containers: all you need to know (AND AVOID)
- · 7 min read

Containers: all you need to know (AND AVOID)

Containers and application modernisation are not just a trend: they change how DevOps teams work and how they spend their time on a project.

This article explains what containers and containerisation are, why they matter for application modernisation, what to avoid when adopting them, and which platform we recommend for your business.

What are containers?

Containers are self-contained units that package an application's code, configuration and dependencies into a single, portable object.

They share the operating system installed on a server and run as resource-isolated processes. This makes deployments quick, reliable and consistent, whatever the environment: from a developer's computer to a test environment, from staging to production, from a physical machine to a virtual one, in a private or public cloud.

Benefits of containerisation

Developers working together on code in front of a monitor

When a business grows, its IT systems grow with it. That can be a challenge, but it is also an opportunity to scale.

Containerisation evolved to solve some of these challenges and let companies grow while keeping their organisation efficient. It is a complementary approach to virtualisation, designed to solve application management issues.

These are the main benefits:

Speed

Containers help developers work quickly and easily. There is no time wasted making sure every developer has the same environment, dependencies and module versions.

Flexibility

Containers make it easier to move applications to the cloud. It is the same container image your developers already use on their own systems.

Openness to the future

Building your strategy on open source technologies is a positive step for the future of your company, and lets you contribute to software development as well.

Security

Running each application's main process in a separate container improves security: you can share specific resources without putting anything at internal or external risk.

Productivity

A rapid development environment lets you change a platform's source code and see the changes instantly while the applications are running.

Why containers matter for application modernisation

Imagine you need to upgrade ageing applications or add modern features and capabilities to them.

By migrating them to containers, you can add new functionality, change the code, upgrade the front end and more. You can even re-platform applications that are so old they are not optimised for mobile.

This lets you take the original idea behind your app and modernise it to bring in more revenue, higher engagement and a better user experience. The benefits of modernisation are worth it:

  • Cost reduction: a manageable, scalable operating environment reduces costs;
  • Staff productivity: fewer application incidents, improved team operations, new features and functionality;
  • Better customer experience: new services and processes with a more user-friendly interface;
  • New revenue streams: an easier-to-update system makes it simpler to create services that add value for customers.

That is why containers emerged as a way to manage modern applications: they package an application with all the files it needs to run, so it can move between environments while keeping complete functionality.

Container orchestration

Container orchestration is the automated process of managing and scheduling the work of individual containers, typically for microservices architectures running across multiple nodes in clusters.

It aims to get the best performance from containers and lets developers deploy, update or roll back applications quickly and without effort.

How containers and microservices work together is essential for any business looking to scale. As more businesses digitise or become hybrid, these solutions offer plenty of flexibility when building an ecosystem.

Containers, Kubernetes and derivatives

Kubernetes is an open-source system for automating the deployment, scaling and management of containers. It groups them into logical units that are easy to manage and discover.

The advantage of this combination is that Kubernetes gives every developer efficient orchestration of open-source containers, with automatic management and scaling of containerised applications.

Because the project is open source, many vendors build extra layers on top of Kubernetes, adding features, graphical management interfaces, integration with specific network providers, security contexts and more. Examples include Rancher and, above all, Red Hat's OpenShift Container Platform, which we cover below.

What can you do with container orchestration on Kubernetes?

  • Configure, provision and schedule the deployment of containers;
  • Get high availability and auto-recovery, so applications keep running even after a fatal error;
  • Configure applications in terms of the containers they run in, with different execution contexts and environments on the same cluster;
  • Scale containers to balance application workloads across the infrastructure;
  • Handle load balancing, traffic routing and service discovery;
  • Monitor the health of your containers and know how well your system is performing;
  • Secure the interactions between containers.

What to avoid when adopting containers

DevOps team discussing code on monitors in the office

All of that sounds good, but adopting containers is not always easy. These are the mistakes we see most often.

Failing to monitor containers effectively

Containers add complexity to normal operations. They are meant to be ephemeral and can be spun up or down at any time, so administrators often skip the monitoring policies that let the organisation keep track of the containers and the infrastructure that supports them.

Treating containers like VMs

Enterprises often fail to grasp the differences between containers and virtual machines, such as the fact that containers are immutable and stateless. This lack of understanding leads to significant challenges later on. Every change to a container needs a clear strategy, instead of constantly recomposing the pipeline.

Running containers as privileged

A long-standing security best practice is not to run processes with privileges they do not need. Apply the principle of least privilege: there is no reason for apps and containers to run as root.

Not integrating containers into a continuous security loop

This includes image provenance, patching, security scanning and policy-based monitoring. Developers love control over the deployed environment, but operations and security teams have concerns about it.

Build security tools that check for known vulnerabilities into the continuous integration (CI) process, then automate as much as possible to check whether images have newly discovered vulnerabilities.

Why OpenShift?

OpenShift is an application platform built for containers with Kubernetes. It automates the build, deployment and management of applications, so teams can keep writing code for new ideas.

OpenShift can bring physical, virtual, private and public infrastructure together in a single platform. It is Red Hat's cloud development platform, which lets users create, test and run applications while deploying them to the cloud.

Main benefits of OpenShift

  • Simplifies the complexity of managing containers;
  • Makes container use viable for enterprise applications;
  • Tackles many of the challenges containerisation can bring, such as difficulty tracking and monitoring containers, excessive time spent on system architecture and issues scaling applications;
  • Lets you innovate and reach the market faster by accelerating application development;
  • Lets companies take advantage of a large community of Docker-formatted Linux containers;
  • Uses PaaS (Platform as a Service) to automate the hosting, configuration, deployment and administration of application stacks in a cloud environment;
  • Supports all containers and turns them into a simple cloud where management is automatic.

Which container platform should you choose?

There are many cloud providers, and many of them offer solutions based on or built on top of Kubernetes. To make the right choice of provider and orchestration platform, look at how well it supports your applications, your team and your hybrid-cloud needs.

Our recommendation: OpenShift on Azure

Combined, these two big players let enterprises create a hybrid cloud environment that meets their business needs.

Azure Red Hat OpenShift combines the enterprise leadership of Azure with the power of Red Hat OpenShift to simplify container management on Kubernetes and help customers innovate on their cloud journeys.

Benefits of OpenShift on Azure

  • A consistent application life-cycle experience across on-premises and cloud environments;
  • A scalable, reliable and supported hybrid environment;
  • The ability to develop, deploy and manage container-based applications at scale in a trusted host environment;
  • An open platform that supports a wide variety of languages, middleware, databases and applications.

Why Red Hat?

Red Hat is an open source solutions leader, using a community-powered approach to deliver high-performing Linux, cloud, container and Kubernetes technologies.

The company is also one of the leading contributors to Kubernetes and has built key features and components of the open source project. As a catch-all container platform, Red Hat OpenShift is more than a software product: it can be the key to adopting a DevOps culture, automating routine operational tasks and standardising environments across an app's life cycle.

Why Azure?

Azure is a trusted cloud with a broad range of compliance offerings, and it offers AI and machine learning services for developers and data scientists.

It also has more regions than most cloud providers, which lets users reach a global scale, and strong hybrid capabilities. It is recognised in the industry for its IaaS, PaaS and SaaS solutions and for its support of open source, so you can develop and build the way you want, with your choice of tools, applications and frameworks.

How to start adopting containers

The safest way to start is small: choose one application, containerise it, put monitoring and security scanning in place from day one, and only then move to orchestration with Kubernetes or OpenShift. Learning from one real workload avoids most of the mistakes listed above.

Check our OpenShift Datasheet for more information:

Red Hat OpenShift datasheet: accelerate innovation with containers

Contact us if you have any questions about adopting containers in your organisation.