Docker
Docker is a type of container - all that is required to run your application is packaged within the container.
Underlying host - OS that it runs on is completely abstracted.
Idea of layers
Terminologies
Guest
Host
Components
- Core
- Daemon -
- Machine (previously boot2docker) -
- Client - interacts with the daemon
- Registry
- Image
- Container
How is docker different from a VM?
A VM also includes the entire host / operating system -> this typically takes up lots of space
Why use docker
- Can run anywhere, on anything - supported on most major OSes: Windows, MacOS, Linux
- Allow you to develop and deploy in any languages and stacks.
- Works on my machine, at scale
TODO
- docker volumes
- what is docker swarm (link to orchestration, - also, write about orchestration)
- how is this different from k8s
- docker-compose
- docker filesystem - it has its own filesystem (this is outside of volumes)
- best practices
- why is using
WORKDIRa best practice??
- why is using
References:
1. What is Docker and how does it work?
Cateogory: [Tech]
Tags: [containers]