DOCKER image vs container: Difference EASILY explained with 🍪 for beginners. Rebuild on file changes

preview_player
Показать описание
What's the difference between #docker #images and #containers? My answer shows this with the #nginx #webserver and ... #cookies! 🍪 I'll #explain the difference with simple examples based on my #stackoverflow question, which I asked as a #beginner multiple years ago. At the end there is a bonus from my knowledge today, showing you how to improve your workflow to use docker more efficiently.

00:00 A question asked over 5 years ago
00:33 Simple example #Dockerfile
02:50 It doesn't work!
03:54 Docker image vs container explained tasty
07:17 Bonus: How to improve your workflow with compose
Рекомендации по теме
Комментарии
Автор

Thanks so much for this video, I am new to using docker and I was very tired to have to delete and build the image manually every time I made a change into my code, now I have a better understanding of how docker works.

victorgomez
Автор

Thankyou so much for the an amazing explanation !!

slog
Автор

Bro, thank you very much, this is a really great vídeo and you have saved me!!!

socialmentehabil
Автор

Das beste Video das ich zu dem Thema finden konnte und extrem gut erklärt

soxenoinspali
Автор

What if my docker-compose file creates 3 containers as such:
1- web app (Django)
2- db (Postgres)
3- nginx

and i wanted to change some code in the Django files, without rebuilding everything and losing Postgres data?

etylio
Автор

I it's no different from compiling code. You can't run the old executable, or object files, and expect your new code changes to take affect. Is this really a difficult concept? Are compiled objects no longer taught in Comp. Sci or coding bootcamps? Anyway, I like the video it is a great explanation of an old concept.

caolanod
Автор

Nice video I like those graphical explanations

linuxx