More Related Content
Similar to Docker intro workshop: Dockerize your PHP app (20)
Docker intro workshop: Dockerize your PHP app
- 2. Index
● What’s Docker
● Pros
● Containers vs VMs
● API
● Concept: Containers vs Images
● Security
● Workshop
● Docker-compose
● Summary
● Tips
- 3. What’s “that” whale called Docker?
Origin: LXC Run multiple isolated Linux systems on the same host
- 8. ● Hypervisor emulates hardware y kernel-> isolate
● Docker containers are implemented by the host kernel itself
● Hypervisor out the box vs Seccomp
(https://docs.docker.com/engine/security/seccomp/)
● Kernel exploit
● Resource starvation
● Container breakout
● In practice:
○ Another POV-> deployment
○ ¿kernel exploit?
Security
- 10. container = running image
Image: class
Container: instance
1 image -> * Containers
Senderismo...¿wtf?
- 14. Do I need Docker?
Give it an opportunity,for
example Redis.
- 15. Lab 1 - nginx
https://github.com/avcconti/dockerize-web-app
- 18. Lab 4 - nginx (entrypoint)+ PHP + Redis
- 27. Tips
● Files
○ dockerfile
○ .dockerignore
○ docker-compose.yml
○ .env
● ENV variables
● Stateless apps
● Dockerfile instructions order: heaviest at top