Creating Effective Docker Images

  Рет қаралды 27,986

Docker

Docker

6 жыл бұрын

Sick of getting paged at 2am and wondering "where did all my disk space go?" This has actually happened to me, and you can learn from my mistakes! New Docker users often start with a stock image in order to get up and running quickly, but that isn't always the right answer. Creating efficient images is often overlooked, but important. Beyond saving resources, using minimal images also delivers important security benefits: include only what you need and not a whole runtime that might have security vulnerabilities. In this session, I'll talk about how to create effective images and lessons I've learned from running containers in production at a number of startups. I'll also cover topics like "how do layers work?" and some things you should think about when creating your images, such as; choosing or creating the right base image; the importance of caching; using RUN statements conservatively; cleaning up as you go. I'll also address best practices; both at a high level with multi-stage builds; and some language-specific best practices, for example, tips and tricks for creating containers for Node.js vs Go. To illustrate these points, we'll cover: * How layers work? * Choosing a base image vs. creating your own * The basics of building minimal images and the importance of choosing a base image vs. creating your own * The basics of building minimal images and the importance of caching * High level best practices for Linux containers (in general, and some language specific examples) * High level best practices for Windows container images * New and improved: multi-stage builds * Good vs. not so good Dockerfile examples * Docker Image Scanning, and other friends * What's up next? Looking to the future for more optimization.

Пікірлер: 15
@andrewedwards3970
@andrewedwards3970 5 жыл бұрын
This is simply a great presentation: clear, concise, professional. People complaining about use of the word "so"? "So what" I say, it was great, free, and perfectly scoped.
@lyingcat9022
@lyingcat9022 5 жыл бұрын
Cache rules everything around me, docker docker builds y’all!
@lyingcat9022
@lyingcat9022 5 жыл бұрын
Haha great talk :) New to using Docker and this pointed out some good stuff I might not have thought about right away. Thanks
@debapriyag
@debapriyag 5 жыл бұрын
But the disk sizes are not calculated on the number of containers multiplied by the base image. The base image still will be using just one times its own size irrespective of the number of containers being spun from it. Only the writable layer keeps adding to the disk size for each container.
@sergeileshchinsky
@sergeileshchinsky 3 жыл бұрын
Great presenter. Keep up!
@user-fs8on7xi9i
@user-fs8on7xi9i 6 жыл бұрын
Good Speech.
@qiny9772
@qiny9772 6 жыл бұрын
great!
@mr.august1
@mr.august1 5 жыл бұрын
I like her "so" :)
@lyingcat9022
@lyingcat9022 5 жыл бұрын
Cache me outside, how bout dat?
@naoualinizar3573
@naoualinizar3573 5 жыл бұрын
like u Abby
@Rogueixpresents
@Rogueixpresents Жыл бұрын
Why these images are so big? I legit do not understand it
@RELO4D3D1
@RELO4D3D1 6 жыл бұрын
Good stuff! Advice to speaker is to try to stop using "so" as a stop / pause word, otherwise great presentation.
@ZFlyingVLover
@ZFlyingVLover 5 жыл бұрын
Better than using 'Um'
@donwald3436
@donwald3436 6 жыл бұрын
um, so
THE POLICE TAKES ME! feat @PANDAGIRLOFFICIAL #shorts
00:31
PANDA BOI
Рет қаралды 24 МЛН
OMG🤪 #tiktok #shorts #potapova_blog
00:50
Potapova_blog
Рет қаралды 18 МЛН
Sigma Girl Past #funny #sigma #viral
00:20
CRAZY GREAPA
Рет қаралды 32 МЛН
Dockerfile Best Practices
37:41
Docker
Рет қаралды 5 М.
Practical Design Patterns in Docker Networking
42:30
Docker
Рет қаралды 66 М.
Docker Multi-arch All the Things
39:26
Docker
Рет қаралды 2,5 М.
docker: multi-stage builds (intermediate) anthony explains #503
11:42
anthonywritescode
Рет қаралды 9 М.
Deeper Dive in Docker Overlay Networks
41:55
Docker
Рет қаралды 8 М.
Docker Crash Course for Absolute Beginners [NEW]
1:07:39
TechWorld with Nana
Рет қаралды 1,5 МЛН
Dockerfile: From Start to Optimized (DockerCon 2023)
37:54
Docker
Рет қаралды 3,8 М.
Docker, FROM scratch - Aaron Powell
59:31
NDC Conferences
Рет қаралды 137 М.
Dockerfile Tutorial by Example - ( Part I - Basics )
46:21
takacsmark
Рет қаралды 99 М.
Docker For Beginners: From Docker Desktop to Deployment
59:30
Travis Media
Рет қаралды 724 М.
ОБСЛУЖИЛИ САМЫЙ ГРЯЗНЫЙ ПК
1:00
VA-PC
Рет қаралды 687 М.