How To Put Your Docker Image On A Diet | PHP So...

How To Put Your Docker Image On A Diet | PHP South West

Large docker images are slow to deploy and costs can mount up when they are used on cloud infrastructure.

In this talk I will demonstrate 6 ways to reduce the size of your Docker image. Each example has been tagged as a working example that can be found on the Docker hub and GitHub.

I presented this talk at PHP South West on the 11th of October 2017

Peter Fisher

October 11, 2017

Annual Pro sale · Save $30

Have presentations of your own?

Share with private links, password protection, and more control over your work.

Transcript

17 slides
  1. How to put your Docker image on a diet Peter

    Fisher BSC MBSC How To Code Well YouTube channel Author of Docker In Motion Freelance web & mobile applications developer youtube.com/howtocodewell 40% off code dockphpsc From Manning Publications How to put your Docker image on a diet
  2. What is the point in having a small image? Peter

    Fisher BSC MBSC How to put your Docker image on a diet • Speed of deployment • Cost
  3. Docker is not just about containers! Peter Fisher BSC MBSC

    How to put your Docker image on a diet
  4. 593MB tag 0.1.0 6 run instructions Peter Fisher BSC MBSC

    How to put your Docker image on a diet
  5. Peter Fisher BSC MBSC 588MB tag 0.2.0 1 run instruction

    Peter Fisher BSC MBSC How to put your Docker image on a diet
  6. * Should give you nightmares DO NOT Peter Fisher BSC

    MBSC Peter Fisher BSC MBSC How to put your Docker image on a diet
  7. Peter Fisher BSC MBSC 314MB tag 0.3.0 Only install what

    you need Peter Fisher BSC MBSC How to put your Docker image on a diet
  8. Peter Fisher BSC MBSC Peter Fisher BSC MBSC How to

    put your Docker image on a diet
  9. Peter Fisher BSC MBSC 275MB tag 0.4.0 Removing what we

    don’t need Peter Fisher BSC MBSC How to put your Docker image on a diet
  10. Peter Fisher BSC MBSC 262MB tag 0.5.0 Using a smaller

    base image Peter Fisher BSC MBSC How to put your Docker image on a diet
  11. Peter Fisher BSC MBSC 252MB tag 0.6.0 Ignoring from the

    build context Peter Fisher BSC MBSC How to put your Docker image on a diet
  12. Peter Fisher BSC MBSC > 50% smaller! Peter Fisher BSC

    MBSC How to put your Docker image on a diet
  13. Thank you! peterfisher.me.uk Peter Fisher BSC MBSC Questions? Peter Fisher

    BSC MBSC How to put your Docker image on a diet
  14. Feedback & Questions joind.in/talk/a866f What did you think? Peter Fisher

    BSC MBSC Peter Fisher BSC MBSC How to put your Docker image on a diet

More Decks by Peter Fisher

Other Decks in Technology