A container is a virtualization technology that packages a program together with the libraries and configuration it needs and runs it in an environment isolated from other processes while sharing the host operating system kernel. Unlike a virtual machine, it does not boot a separate operating system, so it is lightweight, starts quickly, and reproduces the same runtime environment on any server.
Containers are built on Linux kernel features such as namespaces and cgroups, and Docker, released in 2013, drove their widespread adoption. Kubernetes is the most widely used tool for deploying and managing groups of containers. In AI, containers are commonly used for model serving, reproducible training environments, and sandboxes in which AI agents execute code, but because they share the kernel and hardware with the host, they provide weaker isolation than virtual machines.