Docker basic with Nana notes(Not finished yet)
1 Docker vs VM(Virtualiation tools)
| Docker | VM | |
|---|---|---|
| Size | Virtualized application layer | Virtualized application layer+ OS kernal |
| Size | Smaller | |
| Speed | Faster | |
| compatibility | VM of OS can run on any os host |
2 Docker compose
Running multiple services
3 Volume Types
- Host volume
- Anynouymous volume
- Named volume
- You can reference the volume by name
- Should be used in production