تدريب Shadowing: 100+ Docker Concepts you Need to Know - تعلم التحدث بالإنجليزية عبر الفيديو

اختر وضع التدريب

كل وضع يفتح غرفة تدريب بملء الشاشة.

105 جمل
إذا كانت الجمل قصيرة أو طويلة جدًا، انقر على Edit لتعديلها.
1
Welcome to Docker 101.
مرحباً بكم في دورة Docker 101.
2
If your goal is to ship software in the real world, one of the most powerful concepts to understand is containerization.
إذا كان هدفك هو إصدار البرمجيات في العالم الحقيقي، فإن أحد أقوى المفاهيم التي يجب فهمها هو الحاوية (Containerization).
3
When developing locally, it solves the age-old problem of it works on my machine, and when deploying in the cloud, it solves the age-old problem of this architecture doesn't scale.
عند التطوير المحلي، يحل المشكلة القديمة المتمثلة في "هذا يعمل على جهازي"، وعند النشر في السحابة، يحل المشكلة القديمة المتمثلة في "هذه البنية لا تتوسع".
4
Over the next few minutes, we'll unlock the power inside this container by learning 101 different concepts and terms related to computer science, the cloud, and of course Docker.
خلال الدقائق القليلة القادمة، سنفتح القوة الكامنة داخل هذا الحاوية من خلال تعلم 101 مفهوماً ومصطلحاً مختلفاً يتعلق بعلوم الحاسوب، والحوسبة السحابية، وبالطبع Docker.
5
I'm guessing you know what a computer is, right?
أظن أنك تعرف ما هو الكمبيوتر، أليس كذلك؟
6
box that has three important components inside.
صندوق يحتوي على ثلاثة مكونات مهمة بداخله.
7
A CPU for calculating things, random access memory for the applications you're using right now, and a disk to store things you might use later.
وحدة معالجة مركزية (CPU) لإجراء العمليات الحسابية، وذاكرة وصول عشوائي (RAM) للتطبيقات التي تستخدمها حاليًا، وقرص تخزين لحفظ الأشياء التي قد تحتاجها لاحقًا.
8
This is bare metal hardware, but in order to use it, we need an operating system.
هذه أجهزة عتاد صلب، ولكن لكي نتمكن من استخدامها، نحتاج إلى نظام تشغيل.
9
Most importantly, the OS provides a kernel that sits on top of the bare metal, allowing software applications to run on it.
الأهم من ذلك، يوفر نظام التشغيل نواة (kernel) تعمل فوق العتاد الصريح (bare metal)، مما يتيح للتطبيقات البرمجية العمل عليها.
10
In the olden days, you would go to the store and buy software to physically install it on your machine.
في الأيام الخوالي، كنت تذهب إلى المتجر وتشتري البرامج لتثبيتها فعليًا على جهازك.
11
But nowadays, most software is delivered via the internet through the magic of networking.
لكن في الوقت الحاضر، يتم توزيع معظم البرامج عبر الإنترنت بفضل سحر الشبكات.
12
When you watch a YouTube video, your computer is called the client, but you and billions of other users are getting that data from remote computers called servers.
عندما تشاهد فيديو على يوتيوب، يُطلق على جهاز الكمبيوتر الخاص بك اسم العميل، بينما أنت ومليارات المستخدمين الآخرين تحصلون على تلك البيانات من أجهزة كمبيوتر بعيدة تُسمى الخوادم.
13
When an app starts reaching millions of people, weird things begin to happen.
عندما يبدأ تطبيق ما في الوصول إلى ملايين الأشخاص، تبدأ أشياء غريبة في الحدوث.
14
The CPU becomes exhausted handling all the incoming requests, disk IO slows down, network bandwidth gets maxed out, and the database becomes too large to query effectively.
يصبح المعالج المركزي (CPU) مرهقًا من معالجة جميع الطلبات الواردة، وتباطؤ عمليات الإدخال والإخراج على القرص، ويصل عرض النطاق الترددي للشبكة إلى أقصى حد، وتصبح قاعدة البيانات كبيرة جدًا بحيث لا يمكن الاستعلام عنها بفعالية.
15
On top of that, you wrote some garbage code that's causing race conditions, memory leaks, and unhandled errors that will eventually grind your server to a halt.
علاوة على ذلك، لقد كتبت بعض الكود غير الجيد الذي يسبب مشاكل التزامن (race conditions)، وتسربات الذاكرة، والأخطاء غير المعالجة التي ستؤدي في النهاية إلى توقف خادمك تمامًا.
16
The big question is how do we scale our infrastructure?
السؤال الكبير هو كيف يمكننا توسيع نطاق بنيتنا التحتية؟
17
A server can scale up in two ways, vertically or horizontally.
يمكن للخادم أن يتوسع بطريقتين، إما عموديًا أو أفقيًا.
18
To scale vertically, you take your one server and increase its RAM and CPU.
للقيام بالتحجيم الرأسي، تأخذ خادمك الواحد وتزيد من ذاكرة الوصول العشوائي (RAM) والمعالج (CPU) الخاص به.
19
This can take you pretty far, but eventually you hit a ceiling.
هذا يمكن أن يأخذك إلى مسافة بعيدة جدًا، لكنك في النهاية ستواجه سقفًا لا يمكن تجاوزه.
20
The other option is to scale horizontally, where you distribute your code to multiple smaller servers, which are often broken down into microservices that can run and scale independently.
الخيار الآخر هو التوسع الأفقي، حيث تقوم بتوزيع الكود الخاص بك على خوادم أصغر متعددة، والتي غالبًا ما يتم تقسيمها إلى خدمات ميكروسكوبية (microservices) يمكنها التشغيل والتوسع بشكل مستقل.
21
But distributed systems like this aren't very practical when talking about bare metal, because actual resource allocation varies.
لكن الأنظمة الموزعة مثل هذه ليست عملية جدًا عند الحديث عن الأجهزة المادية مباشرة، لأن تخصيص الموارد الفعلي يختلف.
22
One way engineers address this is with virtual machines, using tools like Hypervisor.
إحدى الطرق التي يتبعها المهندسون لمعالجة هذا الأمر هي استخدام الأجهزة الافتراضية، مع أدوات مثل Hypervisor.
23
It can isolate and run multiple operating systems on a single machine.
يمكنه عزل وتشغيل أنظمة تشغيل متعددة على جهاز واحد.
24
That helps, but a VM's allocation of CPU and memory is still fixed.
هذا مفيد، لكن تخصيص وحدة المعالجة المركزية والذاكرة للجهاز الظاهري لا يزال ثابتًا.
25
And that's where Docker comes in, the sponsor of today's video.
وهنا يأتي دور Docker، الراعي لفيديو اليوم.
26
Applications running on top of the Docker engine all share the same host operating system kernel
التطبيقات التي تعمل فوق محرك Docker تشترك جميعها في نواة نظام التشغيل المضيف نفسه.
27
and use resources dynamically based on their needs.
واستخدام الموارد بشكل ديناميكي بناءً على احتياجاتها.
28
Under the hood, Docker's running a daemon or persistent process that makes all this magic possible and gives us OS-level virtualization.
في الخلفية، يقوم Docker بتشغيل ديمون أو عملية مستمرة تجعل كل هذا السحر ممكناً وتمنحنا المحاكاة الافتراضية على مستوى نظام التشغيل.
29
What's awesome is that any developer can easily harness this power by simply installing Docker Desktop.
الأمر الرائع هو أن أي مطور يمكنه تسخير هذه القوة بسهولة بمجرد تثبيت Docker Desktop.
30
It allows you to develop software without having to make massive changes to your local system.
يتيح لك تطوير البرمجيات دون الحاجة إلى إجراء تغييرات كبيرة على نظامك المحلي.
31
But here's how Docker works in three easy steps.
ولكن إليك كيف يعمل Docker في ثلاث خطوات سهلة.
32
First, you start with a Docker file.
أولاً، تبدأ بملف Docker.
33
This is like a blueprint that tells Docker how to configure the environment that runs your application.
هذا يشبه مخططًا تفصيليًا يخبر Docker كيفية تكوين البيئة التي تشغل تطبيقك.
34
The Docker file is then used to build an image, which contains an OS, your dependencies, and your code, like a template for running your application.
يُستخدم ملف Docker بعد ذلك لبناء صورة تحتوي على نظام تشغيل، والتبعيات البرمجية الخاصة بك، والكود الخاص بك، لتكون بمثابة قالب لتشغيل تطبيقك.
35
And we can upload this image to the cloud to places like Docker Hub and share it with the world.
ويمكننا رفع هذه الصورة إلى السحابة في منصات مثل Docker Hub ومشاركتها مع العالم.
36
But an image by itself doesn't do anything.
لكن الصورة في حد ذاتها لا تفعل شيئًا.
37
You need to run it as a container, which itself is an isolated package running your code that in theory could scale infinitely in the cloud.
تحتاج إلى تشغيله كحاوية (container)، وهي بحد ذاتها حزمة معزولة تقوم بتشغيل الكود الخاص بك، ومن الناحية النظرية يمكنها التوسع بلا حدود في السحابة.
38
Containers are stateless, which means when they shut down, all the data inside them is lost.
الحاويات عديمة الحالة، وهذا يعني أنه عند إيقاف تشغيلها، تُفقد جميع البيانات الموجودة بداخلها.
39
But that makes them portable, and they can run on every major cloud platform without vendor lock-in.
ولكن هذا يجعلها قابلة للنقل، ويمكنها العمل على كل منصات السحابة الرئيسية دون الارتباط بمورد معين.
40
Pretty cool, but the best way to learn Docker is to actually run a container.
هذا رائع، لكن أفضل طريقة لتعلم Docker هي تشغيل حاوية فعليًا.
41
Let's do that right now by creating a Docker file.
لنقم بذلك الآن عن طريق إنشاء ملف Dockerfile.
42
A Docker file contains a collection of instructions, which by convention are in all caps.
يحتوي ملف Docker على مجموعة من التعليمات، التي تُكتب حسب العرف بأحرف كبيرة بالكامل.
43
From is usually the first instruction you'll see, which points to a base image to get started.
عادةً ما تكون التعليمة From هي أول تعليمة تراها، وهي تشير إلى الصورة الأساسية التي تبدأ منها.
44
This will often be a Linux distro, and may be followed by a colon, which is an optional image tag, and in this case specifies the version of the OS.
غالبًا ما يكون هذا توزيعة Linux، وقد يتبعها نقطتان مزدوجتان، وهي علامة صورة اختيارية، وتحدد في هذه الحالة إصدار نظام التشغيل.
45
Next, we have the working directory instruction, which creates a source directory and CDs into it, and that's where we'll put our source code.
بعد ذلك، لدينا تعليمات دليل العمل، التي تقوم بإنشاء دليل مصدر وتنتقل إليه، وهذا هو المكان الذي سنضع فيه الكود المصدري الخاص بنا.
46
All commands from here on out will be executed from this working directory.
سيتم تنفيذ جميع الأوامر من هذا المكان فصاعدًا من دليل العمل هذا.
47
Next, we can use the run instruction to use a Linux package manager to install our dependencies.
بعد ذلك، يمكننا استخدام أمر التشغيل (run) لاستخدام مدير حزم Linux لتثبيت التبعيات الخاصة بنا.
48
Run lets you run any command just like you would from the command line.
تتيح لك أداة Run تشغيل أي أمر تمامًا كما تفعل من سطر الأوامر.
49
Currently we're running as the root user, but for better security we could also create a non-root user with the user instruction.
حاليًا نحن نعمل بصلاحيات المستخدم root، ولكن لتحسين الأمان يمكننا أيضًا إنشاء مستخدم غير جذري باستخدام الأمر user.
50
Now we can use copy to copy the code on our local machine over to the image.
الآن يمكننا استخدام أمر copy لنسخ الكود من جهازنا المحلي إلى الصورة.
51
You're halfway there, let's take a brief intermission.
لقد وصلت إلى منتصف الطريق، فلنأخذ استراحة قصيرة.
52
Now to run this code we have an API key, which we can set as an environment variable with the env instruction.
الآن لتشغيل هذا الكود، لدينا مفتاح API، يمكننا تعيينه كمتغير بيئة باستخدام الأمر env.
53
We're building a web server that people can connect to, which requires a port for external traffic.
نحن نقوم ببناء خادم ويب يمكن للناس الاتصال به، وهذا يتطلب منفذًا لحركة المرور الخارجية.
54
Use the expose instruction to make that port accessible.
استخدم الأمر expose لجعل هذا المنفذ قابلاً للوصول.
55
Finally, that brings us to the command instruction, which is the command you want to run when starting up a container.
أخيرًا، يقودنا ذلك إلى تعليمة الأمر، وهي الأمر الذي تريد تشغيله عند بدء تشغيل الحاوية.
56
In this case, it will run our web server.
في هذه الحالة، سيقوم بتشغيل خادم الويب الخاص بنا.
57
There can only be one command per container, although you might also add an entry point, allowing you to pass arguments to the command when you run it.
يمكن أن يكون هناك أمر واحد فقط لكل حاوية، على الرغم من أنك قد تضيف أيضًا نقطة دخول، مما يتيح لك تمرير المعاملات إلى الأمر عند تشغيله.
58
That's everything we need for the Dockerfile.
هذا كل ما نحتاجه لملف Dockerfile.
59
But as an added touch, we could also use label to add some extra metadata, or we could run a health check to make sure it's running properly,
ولكن كلمسة إضافية، يمكننا أيضًا استخدام label لإضافة بعض البيانات الوصفية الإضافية، أو يمكننا تشغيل فحص صحي للتأكد من أنه يعمل بشكل سليم،
60
or if the container needs to store data that's going to be used later or be used by multiple containers, we could mount a volume to it with a persistent disk.
أو إذا كانت الحاوية تحتاج إلى تخزين بيانات سيتم استخدامها لاحقًا أو سيتم استخدامها من قبل عدة حاويات، فيمكننا ربط وحدة تخزين (volume) بها باستخدام قرص دائم.
61
Okay, we have a Dockerfile, so now what?
حسناً، لدينا ملف Dockerfile، فماذا نفعل الآن؟
62
When you install Docker Desktop, that also installed the Docker CLI, which you can run from the terminal.
عند تثبيت Docker Desktop، يتم تثبيت Docker CLI أيضًا، والذي يمكنك تشغيله من الوحدة الطرفية.
63
Run Docker help to see all the possible commands, but the one we need right now is Docker build, which will turn this Docker file into an image.
قم بتشغيل أمر Docker help لمعرفة جميع الأوامر الممكنة، لكن الأمر الذي نحتاجه الآن هو Docker build، الذي سيحول ملف Docker هذا إلى صورة.
64
When you run the command, it's a good idea to use the T flag to tag it with a recognizable name.
عند تشغيل الأمر، من المستحسن استخدام العلامة T لوضع علامة عليه باسم يمكن التعرف عليه.
65
Notice how it builds the image in layers.
لاحظ كيف يقوم ببناء الصورة طبقة فوق طبقة.
66
Every layer is identified by a SHA-256 hash, which means if you modify your Docker file, each layer will be cached, so it only has to rebuild what has actually changed,
تُعرَّف كل طبقة بواسطة تجزئة SHA-256، مما يعني أنه إذا قمت بتعديل ملف Docker الخاص بك، فسيتم تخزين كل طبقة مؤقتاً، لذا لن تحتاج إلى إعادة بناء إلا ما تغير فعلياً فقط.
67
and that makes your workflow as a developer far more efficient.
وهذا يجعل سير عملك كمطور أكثر كفاءة بكثير.
68
In addition, it's important to point out that sometimes you don't want certain files to end up in a Docker image, in which case you can add them to the Docker ignore file to exclude them from the actual files
بالإضافة إلى ذلك، من المهم الإشارة إلى أنك في بعض الأحيان لا تريد أن تنتهي ملفات معينة داخل صورة Docker، وفي هذه الحالة يمكنك إضافتها إلى ملف Docker ignore لاستبعادها من الملفات الفعلية.
69
that get copied there.
70
Now open Docker Desktop and view the image there.
71
Not only does it give us a detailed breakdown, but thanks to Docker Scout, we're able to proactively identify any security vulnerabilities for each layer of the image.
72
It works by extracting the software bill of material from the image and compares it to a bunch of security advisory databases.
73
When there's a match, it's given a severity rating, so you can prioritize your security efforts.
74
But now the time has finally come to run a container.
75
We can accomplish that by simply clicking on the run button.
76
Under the hood, it executes the docker run command, and we can now access our server on localhost.
77
In addition, we can see the running container here in docker desktop, which is the equivalent to the docker psst command,
78
which you can run from the terminal to get a breakdown of all the running and stop containers on your machine.
79
If we click on it though, we can inspect the logs from this container, or view the file system, and we can even execute commands directly inside the running container.
80
Now when it comes time to shut it down, we can use Docker stop to stop it gracefully, or Docker kill to forcefully stop it.
81
You can still see the shutdown container here in the UI, or use remove to get rid of it.
82
But now you might want to run your container in the cloud.
83
Docker push will upload your image to a remote registry, where it can then run on a cloud like AWS with Elastic Container Service,
84
or it can be launched on serverless platforms like Google Cloud Run.
85
Conversely, you may want to use someone else's Docker image, which can be downloaded from the cloud with Docker Pool.
86
And now you can run any developer's code without having to make any changes to your local environment or machine.
87
Congratulations, you're now a bona fide and certified Docker expert.
88
I hereby grant you permission to print out this certificate and bring it to your next job interview.
89
But Docker itself is only the beginning.
90
There's a good chance your application has more than one service, in which case you'll want to know about Docker Compose, a tool for managing multi-container applications.
91
It allows you to define multiple applications and their Docker images in a single YAML file, like a frontend, a backend, and a database.
92
The Docker Compose up command will spin up all the containers simultaneously, while the down command will stop them.
93
That works on an individual server, but once you reach massive scale, you'll likely need an orchestration tool like Kubernetes to run and manage containers all over the world.
94
It works like this.
95
You have a control plane that exposes an API that can manage the cluster.
96
Now, the cluster has multiple nodes or machines, each one containing a kubelet and multiple pods.
97
A pod is the minimum deployable unit in Kubernetes, which itself has one or more containers inside of it.
98
What makes Kubernetes so effective is that you can describe the desired state of the system, and it will automatically scale up or scale down,
99
while also providing fault tolerance to automatically heal if one of your servers goes down.
100
It gets pretty complicated, but the good news is that you probably don't need Kubernetes.
101
It was developed at Google based on its Borg system and is really only necessary for highly complex high-traffic systems.
102
If that sounds like you though, you can also use extensions on Docker Desktop to debug your pods.
103
And with that, we've looked at 100 concepts related to containerization.
104
Big shout out to Docker for making this video possible.
105
Thanks for watching, and I will see you in the next one.

تنزيل التطبيق

كل ما تحتاجه للتحدث بطلاقة

تقييم النطق بالذكاء الاصطناعيتقييم كل جملة
تدريب IPAأتقن كل صوت
المفرداتابنِ رصيدك من الكلمات
لعبة المفرداتتعلّم أثناء اللعب

نفس القناة

FOR YOU

فيديو موصى به

المفردات وملاحظات التحدث لهذا الدرس

يحتوي هذا الفيديو على 105 جملة و1837 كلمة للتدرب على الترديد. مدة الكلام 8:27. يتكلم المتحدث بسرعة، نحو 217 كلمة في الدقيقة، لذا ستسمع كثيرًا من وصل الكلمات واختزال الأصوات. 79% فقط من الكلمات ضمن أكثر 3,000 كلمة شيوعًا في الإنجليزية، فالمفردات صعبة نسبيًا.

أهم المفردات في هذا الفيديو

15 كلمة من الفيديو تستحق التعلّم، مع النطق والمعنى:

الكلمةالنطقالمعنى
container اسم/kənˈteɪ.nəɹ/حَاوِيَة
server اسم/ˈsɝvɚ/خَادُوم m or خَادِم, مُلَقِّم
cloud اسم/ˈklaʊ̯d/سَحَاب, غَيْم
instruction اسم/ɪnˈstɹʌkʃən/تَعْلِيم
layer اسم/ˈleɪ̯ɚ/طَبَقَة
install فعل/ɪnˈstɔl/رَكَّبَ
database اسم/ˈdeɪtəˌbeɪs/قَاعِدَة بَيَانَات
disk اسم/dɪsk/قُرْص
execute فعل/ˈɛksɪˌkjuːt/أَعْدَمَ
package اسم/ˈpæk.ɪd͡ʒ/صُرَّة, طَرْد
solve فعل/sɒlv/ذَابَ, حَلَّ
remote صفة/ɹəˈməʊt̞/بَعِيد
cluster اسم/ˈklʌstɚ/عُنْقُود, عُنْقُود نَجْمِيّ
upload فعل/ˈʌpˌloʊd/حَمّل
distribute فعل/dɪˈstɹɪbjuːt/وَزَّعَ

الأفعال المركبة التي ستسمعها

الكلمةالمعنى
go down فعلنَزَلَ
point out فعلأَشَارَ

نطق يحتاج إلى انتباه

يستخدم المتحدث 18 من الصيغ المختصرة، مثل we're, you'll, you're. انطقها بصيغتها القصيرة كما تسمعها.

  • أصوات “sh” و“zh”: instruction /ɪnˈstɹʌkʃən/, allocation /ˌæl.əˈkeɪ.ʃən/, extension /ɪkˈstɛnʃən/, efficient /ɪˈfɪʃənt/, congratulations /kənˌɡɹæt͡ʃəˈleɪʃ(ə)nz/
  • الكلمات الطويلة — انتبه لموضع النبر: directory /dɪˈɹɛktəɹi/, developer /dɪˈvɛləpɚ/, allocation /ˌæl.əˈkeɪ.ʃən/, dependency /dɪˈpɛndənsi/, complicated /ˈkɑm.plɪˌkeɪ.tɪd/

كيف تتدرب بهذا الفيديو

  1. استمع إلى الفيديو كاملًا مرة واحدة دون أن تتكلم، ودوّن الكلمات التي لا تعرفها.
  2. ابدأ بسرعة 0.75×، وردّد جملة جملة، ثم عُد إلى السرعة العادية عندما يصبح الأمر سهلًا.
  3. سجّل صوتك وقارنه بالأصل، مع الانتباه إلى كلمات مثل container, server, cloud.

القواعد في هذا الفيديو

أكثر التراكيب التي يستخدمها المتحدث، مع العبارات نفسها من الفيديو:

التركيبفي الفيديو
المبني للمجهول be + اسم المفعول — التركيز على ما يحدث لا على من يفعلهis delivered · is called · are often broken
جمل الوصل who / which + جملة — معلومة إضافية عن شخص أو شيءservers, which are · stateless, which means · colon, which is
المضارع التام have/has + اسم المفعول — حدث ماضٍ ما زال له أثر الآنhas actually changed · has finally come · we've looked

ما هي تقنية التظليل الصوتي؟

التظليل الصوتي (Shadowing) تقنية تعلم لغة مدعومة علمياً، طُورت أصلاً لتدريب المترجمين الفوريين المحترفين. الطريقة بسيطة لكنها قوية: تستمع لصوت إنجليزي أصلي وتكرره فوراً بصوت عالٍ — كظل يتبع المتحدث بتأخير 1-2 ثانية. تُظهر الأبحاث تحسناً كبيراً في دقة النطق والتنغيم والإيقاع وربط الأصوات والاستماع والطلاقة.

تقنية الشادوينغ: اقرأ الدليل الكامل خطوة بخطوة →