Docker hierarchy
- Image/Container:
- define it with a
Dockerfile
- define it with a
- Service:
- combine, scale and balance containers:
docker-compose.yml
- on a single host
- combine, scale and balance containers:
- Swarm/Stack:
- dockerized cluster with a manager and workers: docker swarm, kubernetes, rancher, …
- Stack: deploy/handle services on multiple hosts (extends
docker-compose.yml
)