DELAPARRA
Index
Color
NL
Category: Docker

container

Explained by Updated

What is container?

container: A running (or stopped) instance of an image — an isolated process with its own filesystem, network, and process tree. A container is a running instance of an image. It is an isolated process with its own file system, network and process list, sharing the host's operating system kernel. The image is the blueprint; the container is what runs. You can start many containers from one image, each with its own state. docker ps lists running containers and docker ps -a includes stopped ones.

Definition source Coders Lingo, CC BY 4.0

Frequently asked questions about container

What should you keep in mind with container?

Treat containers as disposable. Anything written inside a container is lost when it is removed, unless it goes to a volume. That is a feature: you can replace a container with a fresh one at any time, which makes updates and scaling straightforward. Keep data in volumes or external services, and configuration in environment variables, so the container itself holds nothing you would miss.

What does an example of container look like?

docker run -d --name web myapp:1.0 docker ps

At a glance

CategoryDocker
Explained by
Updated

More Docker terms

All terms starting with C

Skills

Download all skills (zip)

Manuals

Related services

Need any help?

Stuck on one of these in your own project? Tell me what you are working on and I will tell you how I would approach it.