Тёмный

Docker Crash Course #8 - Layer Caching 

Net Ninja
Подписаться 1,5 млн
Просмотров 56 тыс.
50% 1

Hey gang, in this docker tutorial we'll talk about something called Layer Caching.
🐱‍💻 Access the course files on GitHub:
github.com/iamshaunjp/docker-...
🐱‍💻 Node.js Course:
On Net Ninja Pro - netninja.dev/p/node-js-crash-...
On RU-vid - • Node JS Tutorial for B...
🐱‍💻 Modern JavaScript Course:
On Net Ninja Pro - netninja.dev/p/modern-javascr...
On Udemy - www.thenetninja.co.uk/udemy/m...
On RU-vid - • Modern JavaScript Tuto...
🐱‍💻 React Course:
On Net Ninja Pro - netninja.dev/p/build-websites...
On Udemy - www.thenetninja.co.uk/udemy/r...
🐱‍💻 VS Code - code.visualstudio.com/
🐱‍💻 Docker Hub - hub.docker.com/
🐱‍💻 Docker docs - docs.docker.com/

Опубликовано:

 

10 фев 2022

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 41   
@janekalam
@janekalam Год назад
This docker series is insanely good! Thanks❤
@NetNinja
@NetNinja Год назад
Glad you enjoyed it :)
@kekko7072
@kekko7072 2 года назад
ATTENTION at the end it gives the port error because we have port 4000 just assigned to the previous images, solved by deleting the previous images with port 4000
@whatisintelligence6881
@whatisintelligence6881 7 месяцев назад
I think you can rather stop running container to make host's port free. Not necessary to delete container and especially image.
@springmemory6637
@springmemory6637 10 месяцев назад
I really recommend reading 'Optimizing builds with cache management' in Docker Docs after watching this videos - while it does repeat some stuff I think it also helps concepts sink down
@shubhrajit2117
@shubhrajit2117 9 дней назад
Most of the tutorials I watched before were theoretical and boring... Until I found this gem!
@NetNinja
@NetNinja 9 дней назад
Great to hear :) thanks for watching!
@jorgerauljimenez3307
@jorgerauljimenez3307 2 года назад
This tutorial was really useful. It is a great idea to run npm intall before copying the files.
@tech-networking9287
@tech-networking9287 2 года назад
Excellent explanation, now I know they are in cache and can be retrieved when it comes to build new image
@Star-hw8bh
@Star-hw8bh 2 года назад
Port already taken had shown up. But yeah thanks I understood. Thanks very much for every tutorials
@priyadoesdatascience5141
@priyadoesdatascience5141 6 месяцев назад
Best videos to learn Docker. I looked into several videos in youtube but this series is the best for me as a newbie
@NetNinja
@NetNinja 6 месяцев назад
Awesome :) thanks for watching priya
@odddellarobbia4
@odddellarobbia4 2 года назад
Really excited to learn docker,but maybe i'll wait till the series is complete.
@macusgeorgiev9821
@macusgeorgiev9821 2 года назад
Did we need to copy the package-lock file as well? It should force the specific dependency versions if it exists.
@whatisintelligence6881
@whatisintelligence6881 7 месяцев назад
Thank you for this series! Very easy to understand and to follow. You could have saled your knowledge and teaching talent but you teach us for free. Bless you Ninja
@NetNinja
@NetNinja 7 месяцев назад
You're very welcome! :) thanks for watching
@GM-je3zp
@GM-je3zp 2 года назад
consice and to the point, thank you!!
@hamidmirghafoori1106
@hamidmirghafoori1106 Год назад
To be able to have two containers up and running without port error, just use different port number namely: docker run --name image2 -p 4001:4000 -d appchached2
@youcefmantas4944
@youcefmantas4944 11 месяцев назад
The Best Docker Serie Everrrrrrrrrrrrrrrrrrrrrr!!!!!!!!!!!!!!!!!!!!
@arkimphiri
@arkimphiri 2 года назад
I will not stop lol, until I see a Ruby on Rails course. Please a Ruby on Rails Course
@JeffBarron1
@JeffBarron1 2 года назад
questions: a) how can you access files external to the image b) can you provide startup parameters for when the container loads? e.g start a container with a stock code attribute, to run a task and then shutdown when complete.. b) can you stop a container from within the container, ie when a task is finished
@bilalarain4632
@bilalarain4632 Год назад
You misunderstood the concept of containers
@JeffBarron1
@JeffBarron1 2 года назад
can a docker container expose an ssh/bash terminal, eg maybe you want to run up a container with R and your favourate R extensions, but then work on the contain at the command line? sorry If I sound dumb or confused
@nurudeenkamilu9339
@nurudeenkamilu9339 6 месяцев назад
Great explanation. However the package.json file content can also be changed at times
@JeffBarron1
@JeffBarron1 2 года назад
love your channel, any plan to followup with Kubernetes?
@Bismuth-ig5ru
@Bismuth-ig5ru 2 месяца назад
Thank you!
@muhammadtarique242
@muhammadtarique242 2 года назад
Quick question: what if i use `npm ci `in place of `npm install` and the `COPY package.json .` in dockerfile!!!!
@lenamarie10
@lenamarie10 3 дня назад
Isn't the package.json copied twice then in the last example given we build the conatiner the first time? One time separately and one time with the other stuff?
@friday6426
@friday6426 2 месяца назад
I'm trying to build docker image for a mod_perl 2 application. There are many layers including oracle client, mysql client, perl 5.34 building, mod_perl building, many CPAN modules installation. Is there any limitation on docker image layers?
@JeffBarron1
@JeffBarron1 2 года назад
c) how can to ensure your chosen premade docker image is malware free?
@JeffBarron1
@JeffBarron1 2 года назад
Can you do something like FROM UBUNTU FROM hhtpd FROM PHP as subsequent lines or image layers... how would something like that work?
@JeffBarron1
@JeffBarron1 2 года назад
how do you handle logging
@DuneKraftwerk
@DuneKraftwerk 2 года назад
If you add a new dependencie in package.json , this dependencie won't be installed based on your suggestion.
@shrikantsharma1262
@shrikantsharma1262 Год назад
Small Mistake: myapp5_c container run is failed. Port 4000 already in use.
@usamamuhammad7395
@usamamuhammad7395 Год назад
Because port 4000 is already assigned to the previous container you ran
@Alex.Shalda
@Alex.Shalda 28 дней назад
awesome
@NetNinja
@NetNinja 28 дней назад
Thanks Alex!
@Alex.Shalda
@Alex.Shalda 28 дней назад
@@NetNinja it really helped me at work today, thank you again for such valuable content!
@mohamedyoussef8835
@mohamedyoussef8835 Год назад
Awesome ++++++++++++++++++++++++++++++++ Thank You
@kunalpatle6465
@kunalpatle6465 2 года назад
First
Далее
Docker Crash Course #9 - Managing Images & Containers
10:00
Using docker in unusual ways
12:58
Просмотров 387 тыс.
🎙Пою Вживую!
2:59:56
Просмотров 1,2 млн
МЯСНОЙ ЦЕХ - Страшилки Minecraft
37:24
She’s Giving Birth in Class…?
00:21
Просмотров 6 млн
Docker Crash Course #10 - Volumes
18:38
Просмотров 62 тыс.
Docker Crash Course for Absolute Beginners [NEW]
1:07:39
Kubernetes Explained in 6 Minutes | k8s Architecture
6:28
100+ Docker Concepts you Need to Know
8:28
Просмотров 775 тыс.
How Dockerfile Layers/Caching Work
8:21
Просмотров 11 тыс.
Kubernetes Crash Course for Absolute Beginners [NEW]
1:12:04
🎙Пою Вживую!
2:59:56
Просмотров 1,2 млн