# What is a container?

DevFeed: [What is a container?](<https://devfeed.tech/articles/what-is-a-container-12539.md>)

Original publisher: [Read original article](<http://brooker.co.za/blog/2023/06/19/container.html>)

Author: Marc Brooker

Published: 2023-06-19T00:00:00Z

Content type: article

Language: en

Sources: [Marc Brooker's](<https://devfeed.tech/sources/marc-brooker-s-blog.md>)

Topics: [container](<https://devfeed.tech/topics/container.md>), [container images](<https://devfeed.tech/topics/container-images.md>), [container native](<https://devfeed.tech/topics/container-native.md>), [cgroups](<https://devfeed.tech/topics/cgroups.md>), [Linux Kernel](<https://devfeed.tech/topics/linux-kernel.md>)

Tags: [applications](<https://devfeed.tech/tags/applications.md>), [aws](<https://devfeed.tech/tags/aws.md>), [aws-lambda](<https://devfeed.tech/tags/aws-lambda.md>), [cgroups](<https://devfeed.tech/tags/cgroups.md>), [container](<https://devfeed.tech/tags/container.md>), [container-image](<https://devfeed.tech/tags/container-image.md>), [deployment](<https://devfeed.tech/tags/deployment.md>), [development](<https://devfeed.tech/tags/development.md>), [docker](<https://devfeed.tech/tags/docker.md>), [ecs](<https://devfeed.tech/tags/ecs.md>), [isolation](<https://devfeed.tech/tags/isolation.md>), [kernel](<https://devfeed.tech/tags/kernel.md>), [linux](<https://devfeed.tech/tags/linux.md>), [namespaces](<https://devfeed.tech/tags/namespaces.md>), [operating-system](<https://devfeed.tech/tags/operating-system.md>), [packaging](<https://devfeed.tech/tags/packaging.md>), [practices](<https://devfeed.tech/tags/practices.md>), [security](<https://devfeed.tech/tags/security.md>), [semantics](<https://devfeed.tech/tags/semantics.md>), [tools](<https://devfeed.tech/tags/tools.md>)

## AI overview

"Container" can mean four related but independent things: packaging an application with dependencies for a minimal runtime; practices built around that packaging; operating-system isolation tools such as Linux chroot, cgroups, namespaces, and seccomp; or implementations such as Docker, Kubernetes, and ECS. Packaging predates the other categories, and practices do not require particular tools. Linux interfaces underpin many implementations, though the excerpt says most semantics can be provided in other ways. AWS Lambda's container image support mainly concerns packaging. The claim that containers are not a security boundary mainly concerns isolation tools and implementations, while packaging and related practices can benefit security. The practical advice is to clarify which meaning is intended.

## Source excerpt

What is a container? What are words, anyway? A common cause of confusion and miscommunication I see is different people using different definitions of words. Sometimes the definitions are subtly different (as with availability). Sometimes they're completely different, and we're just talking about different things entirely. A common example is the word container, a popular term for a popular technology that means at least four different things. An approach to packaging an application along with its dependencies (sometimes a whole operating system user space), that can then run on a minimal runtime environment with a clear contract4. A set of development, deployment, architectural, and operational approaches built around applications packaged this way. A set of operational, security, and performance isolation tools that allow multiple applications to share an operating system without interfering with each other. On Linux, this tools include chroot, cgroups, namespaces, seccomp, and others. A set of implementations of these practices (the proper nouns, Docker, Kubernetes, ECS, etc). These four definitions are surprisingly independent. The idea of packaging applications this way predates the other three, and will likely be around after they are gone. The practices and approaches are enabled by the tools, but don't really require them. The Linux kernel-level interfaces, and the semantics and security they provide, are a basis for many of the implementations today, but most of the semantics are available in different ways1. To pick an example, when we talk about container image support in AWS Lambda3 we mostly mean the first one: enabling customers to get the advantages of packaging their code that way, with a small overlap with practices (some become easier to use with this support available), and the fourth (some of these tools can be used to create the images in ways that fit into a broader ecosystem). Or, to pick another example, when people say containers are not a s