Back to Glossary
Kubernetes

What is Init Container?

A container that runs and completes before the main application containers start in a Pod.

Init containers run before app containers in a Pod and must complete successfully before any app container starts. They are used for setup tasks: waiting for a database to be ready, running migrations, fetching secrets from Vault, or rendering config templates. Init containers have separate images from app containers and run sequentially. If an init container fails, Kubernetes restarts the Pod according to its restartPolicy.

Test your knowledge of Init Container and 130 other DevOps concepts