Docker / Docker Swarm / Kubernetes
Docker
Docker containers
- Are independent (basically a virtual machine)
- Have environment varibles
- one process running (as opposed to a virtual machine)
- have a root volume
- one entrypoint
Containers
Layers of changes to a basic container.
layers can be cached.
every command == layer
Order them so the most changed stuff is at the top
Networks
bridge network: you have your own internal network that gets translated into a different address when it goes out.
host network: ???
overlay network: Docker Swarm/Kubernetes make them think they are in the same network even if they are in other network.
Docker Composehttp://elasticsearch:9200
<- Looks like this
Ports
Docker (can) expose (map) ports. There's a host port. Way to make it look like a host network.
Volumes
How you get persistent data.
named volumes: way to keep stuff around. (docker gives them a uuid if unnamed)
You can mount a volume from your host machine.
Docker Swarm / Kubernetes
multiple container working together with network, ins and lifecycle
- Entry Nodes (docker compose / kubernetes) -> route to right place in cluster
Kubernetes
Can mount ebs
volumes