Containers
Isolated environments that package an app with its dependencies, such as Docker images.
A container packages an application with its dependencies so it can run the same way on a laptop, in CI, or on a server. Docker images are the usual format. Containers share the host kernel, which makes them lighter than a virtual machine and a little less isolated. For many services and batch jobs, that trade is a good one.
For agent work, containers are a convenient way to ship a known toolchain and to throw away the result when the job ends. They beat a micro-VM when you want density, fast startup, and a familiar compose file. They lose when you need a hard isolation boundary around untrusted code, or when the workload needs its own kernel.
Keep images small, pin versions, and do not bake secrets into layers. A fat image that copies the whole monorepo is slow to pull and hard to cache. Prefer a base image plus the repo mount, or a thin image that only contains what the job must have.
If you cannot rebuild the image from a file in the repo, you do not really have a reproducible environment yet. The Dockerfile, or its equivalent, should be what you rebuild from.