داکر یکی از ابزارهای عالی برای مدیریت برنامهها در کانتینرهاست و ساختارش به گونهای طراحی شده که کار باهاش راحت باشه. بیاید کمی درباره اجزای اصلی داکر صحبت کنیم.
اول از همه، **Docker Daemon** یا همون `dockerd` رو داریم که مسئول همه کارهای پشت صحنهست. این بخش دائماً در حال اجراست و به تمام درخواستهایی که از CLI یا API میاد، پاسخ میده. فکر کنید مثل یه سرآشپز که در حال آمادهسازی غذاهاست!
حالا میرسیم به **Docker CLI**، که ابزار خط فرمان داکره. شما با این ابزار میتونید کارهایی مثل `docker run` یا `docker ps` رو اجرا کنید. این CLI مثل منوی رستوران عمل میکنه، جایی که شما انتخاب میکنید چه چیزی رو میخواید و به سرآشپز (daemon) میگید که چه کاری انجام بده.
و البته **Docker API** هم هست که به شما این امکان رو میده تا از طریق کد، با داکر تعامل کنید. این API مثل یک دستیار دیجیتال عمل میکنه که میتونید بهش بگید چه کارهایی رو انجام بده.
حالا درباره دسترسی به این API. فقط کاربرانی که به گروه داکر اضافه شدن، میتونن به راحتی از این API استفاده کنن. به این ترتیب، شما میتونید بدون نیاز به دسترسی ریشه، کانتینرها رو مدیریت کنید. اما حواستون باشه! اگه توی یک محیط production هستید، بهتره دسترسیها رو محدود کنید و فقط به کاربران مجاز اجازه بدید که از API استفاده کنند. اینطوری امنیت سیستمتون رو هم حفظ میکنید. در نهایت، با این ابزارها میتونید به راحتی برنامههاتون رو راهاندازی کنید و از مزایای داکر بهرهمند بشید.
Website
Sananetco.com
Ещё видео!