2. hello!
I am Luciano A. Borguetti Faustino
Black Ops @ Neoway Business Solutions
You can find me at
lucianoborguetti@gmail.com or https://github.com/lborguetti
3. 1.
Docker like any other
Software has bugs
Keep it in mind to do good night's sleep
4. Reduce Image Size
Less is More
< Layer
= Base Image
One process per container
Whenever possible build “FROM scratch”
Avoid installing unnecessary packages
.dockerignore = < build time
https://docs.docker.com/engine/userguide/eng-
image/dockerfile_best-practices/
5. Logs
Less is More, Once Again
Care taken with --log-drive
With json-file set max-size=[0-9+][k|m|g] and max-file=[0-9+]
https://docs.docker.com/engine/admin/logging/overview/
6. Bonus
Whenever possible use “--net=host”
Avoid Docker Compose to deploy your apps in production
Ulimit? Change the ulimit settings on the host
Docker GC : https://github.com/spotify/docker-gc
Deny developer make “docker push”
https://docs.docker.
com/engine/userguide/networking/dockernetworks/