Top 8 Docker Best Practices for using Docker in Production

Top 8 Docker Best Practices for using Docker in Production

TechWorld with Nana

3 года назад

326,452 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@Gautam-e6h
@Gautam-e6h - 29.04.2025 10:48

Thanks!! It’s very helpful even in 2025 and will remain the same forever.

Ответить
@maxscriptguru
@maxscriptguru - 25.04.2025 07:29

I have been following these practices over the years. But it is nice to see them all spelled out in one place. Good work!

Ответить
@oleggorenkov
@oleggorenkov - 01.04.2025 16:39

What is the image layer?

I've read and heard many times about dockerfile commands and directives creating layers, and caching, and mounting into a container. But I don't think that really defines what an image layer is.

Actually, this is the previous question, and the question that interests me now is: Why are fewer levels better and is this true for all cases (I have doubts)?

Ответить
@cosuchness
@cosuchness - 27.03.2025 22:01

Extremely helpful best practices Nana, thank you. In my case, the image layers example you illustrated was particularly informative.

Ответить
@eFeM135
@eFeM135 - 14.02.2025 18:22

Thanks

Ответить
@tochimclaren
@tochimclaren - 07.12.2024 16:15

Alpine is lean alright but from experience, I tend to steer clear from it.

Ответить
@armin.falahatkar
@armin.falahatkar - 16.10.2024 09:50

Nice

Ответить
@jurajhprobyt2107
@jurajhprobyt2107 - 25.08.2024 15:19

For somebody they are: 8x not use docker anyway😊 for us it is life style and best working practices 😅

Ответить
@mehdin2222
@mehdin2222 - 18.08.2024 13:43

There is no way that I can appreciate what you have done here. These free courses for Docker and other things cost thousands of dollars.

Ответить
@noblenetdk
@noblenetdk - 02.08.2024 12:38

I love the video. You might mention "FROM scratch" to keep the docker image slim.

Ответить
@dimitrifaye3449
@dimitrifaye3449 - 01.08.2024 17:18

good content

Ответить
@rishiraj2548
@rishiraj2548 - 11.07.2024 09:08

Timeless! thanks, Nana.

Ответить
@rishiraj2548
@rishiraj2548 - 31.05.2024 10:48

🎉

Ответить
@Alderbe
@Alderbe - 07.05.2024 23:35

Nice explanation 👍

Ответить
@AfmpJR
@AfmpJR - 28.04.2024 05:06

You did it great. Thank you for sharing

Ответить
@amolsurvase7507
@amolsurvase7507 - 17.04.2024 20:54

Thank you Nana ..!! Best video for docker best practice explanation .

Ответить
@TerenceKearns
@TerenceKearns - 04.04.2024 14:29

Very helpful

Ответить
@baibhavghimire3827
@baibhavghimire3827 - 07.03.2024 06:10

I don’t think you mentioned about multi stage docker where in first stage you chose base image which is rich in everything no matter its size and use that alias in another stage with —from alias clause !

Ответить
@Khalid15325
@Khalid15325 - 21.02.2024 19:48

Reminders for the World: 1) Create a Nobel price of "DevOps" and 2) Deserve it immediately to Nana for her great work on YT ;). So, thank you Nana and best wishes for your carreer ;).

Ответить
@horvathmilcsi
@horvathmilcsi - 02.11.2023 12:31

Great lecture thank you for sharing!

Ответить
@jimfilippou
@jimfilippou - 28.09.2023 22:21

Thank you so much!

Ответить
@umarsadiqi404
@umarsadiqi404 - 13.08.2023 07:29

Really helpul, nicely explained things,
Loved the video... :)

Ответить
@jammsen-z8y
@jammsen-z8y - 05.08.2023 19:54

Hey Nana, I really like this video! You are awesome! Thanks for this. If feedback is allowed: I only disagree majorly on Part3, Calling Alpine "security-oriented" is not true and a well proven fact, that Alpine images report 0 CVE and such, because Alpine only pulished CVEs after they fixed it, other images like Debian and Ubuntu might be bigger, but at least they are honest and dont lie about IT-Security regarding their images ... This is especially hard for people who are working with Ruby on Rails, so often the DEVS in a company have to track all CVEs and remind Alpine to finally fix them. You might have 10 CVEs in a Debain or Ubuntu images as an example but at least they are honest, you know of it you can try to fix it and you know what you get yourself into .... While on Alpine with this shady shadow it approach you never now on what and how many exploding or already exploded bombs you are sitting because they just are not transparent about stuff like that. Thats why Alpine is considered Bad-Practice for production. Ive seen many IT-Sec and DevSecOps talks regarding image security and almost all of them recommend to "not" use Alpine.

Ответить
@alexserbul
@alexserbul - 27.07.2023 20:25

Thank you!

Ответить
@mm-wn7fw
@mm-wn7fw - 26.07.2023 07:55

really great video

Ответить
@lordmoma2025
@lordmoma2025 - 22.07.2023 18:29

update: docker scan ---> docker scout

Ответить
@jubinben4538
@jubinben4538 - 12.07.2023 18:40

Thank you for the easy explaination!

Ответить
@nile_testayman9429
@nile_testayman9429 - 25.06.2023 07:56

👍❤

Ответить
@samucancld
@samucancld - 30.05.2023 07:29

such a great content, thanks

Ответить
@animanaut
@animanaut - 15.05.2023 14:20

maybe would have been a good opportunity to clear up that myth that "docker tags are immutable" even though they might look like semver and "docker tags make '''reproducible''' build" (reproducible vs repeatable)

Ответить
@emmanueloluwayemisi
@emmanueloluwayemisi - 08.05.2023 22:34

I want to execute file creation when building an image. so I assigned appropriate permission, yet the user account can not create the file during the docker build. What do you recommend for me

Ответить
@marcello4258
@marcello4258 - 08.05.2023 08:24

Coming here to see the recommendation to use podman or at least rootless container :P

Ответить
@mostafanizam2040
@mostafanizam2040 - 30.03.2023 10:33

Awesome... Can you please create one video for Jenkins pipeline code for best practices.

Ответить
@Hackenbaker
@Hackenbaker - 08.03.2023 22:55

Thanks a lot. This information is very valuable.

Ответить
@KeshariPiyush24
@KeshariPiyush24 - 02.03.2023 23:18

WOW!!

Ответить
@Lunolux
@Lunolux - 05.02.2023 18:21

very useful video, thanks

Ответить
@ManhPham-fh6on
@ManhPham-fh6on - 28.01.2023 07:05

excellent explanation for caching layer. Ty!

Ответить
@arcstur
@arcstur - 22.01.2023 01:36

For the third tip, I would recomend Google's distroless images!

Ответить
@joncrockettable
@joncrockettable - 04.01.2023 22:12

This is great. Thank you!

Ответить
@franekborowiec9648
@franekborowiec9648 - 29.10.2022 12:55

great video! Learned a few things :)

Ответить
@kepplerdottk
@kepplerdottk - 10.10.2022 12:51

Thanks!

Ответить
@suassouf
@suassouf - 04.10.2022 23:20

Awesome. Extremely useful best practices summary. And it is so clearly explained that if you don´t understand it, probably you have to think in changing your career.

Ответить
@tomasferrari92
@tomasferrari92 - 13.09.2022 17:59

i love u nana

Ответить
@tdothot1
@tdothot1 - 12.09.2022 10:11

She is amazing!!! Beautiful and smart!

Ответить
@wardahsana1
@wardahsana1 - 09.09.2022 22:58

As a good practice, is it safe to run docker prune in production e.g. setting up an event that runs command to do docker prune automatically on prod instances?

Ответить
@rishiraj2548
@rishiraj2548 - 06.09.2022 21:10

🙏👍

Ответить
@mcab2222
@mcab2222 - 15.08.2022 20:43

great video

Ответить
@colinschi
@colinschi - 02.08.2022 02:09

One quick note. For Image caching you have to use immuteable tags/layers. Otherwise a for example when a cached latest tag is used and never get updated. To be more precise you can also use the layers/image digest instead of a tag.

@Nana As always: Great videos! :)

Ответить