Yuav ua li cas koj tawg tawm ntawm lub thawv docker?
Yuav ua li cas koj tawg tawm ntawm lub thawv docker?

Video: Yuav ua li cas koj tawg tawm ntawm lub thawv docker?

Video: Yuav ua li cas koj tawg tawm ntawm lub thawv docker?
Video: Yuav ua li cas thiaj khiav dim lub ntiajteb no 2024, Hlis ntuj nqeg
Anonim

Los ntawm kev ntaus ctrl + p thiab ctrl + q tom qab ib leeg, koj tig kev sib tham sib rau hom daemon, uas ua rau thawv khiav tab sis frees nce koj terminal. Koj tuaj yeem txuas rau nws tom qab siv docker txuas, yog tias koj xav tau kev cuam tshuam nrog cov thawv ntau.

Tsis tas li ntawd, kuv yuav tawm ntawm lub thawv docker li cas?

Tawm mus tawm ntawm docker thawv bash plhaub. Tsuas yog khiav tawm lossis ntaus ctrl-D zoo li koj ib txwm xav. -P yog luv rau --publish-tag nrho cov kev xaiv. Qhov no txhais tau tias docker luam tawm ib qho chaw EXPOSE nrog rau docker duab cia li kom koj nkag tau mus rau qhov chaw nres nkoj los ntawm tus tswv tsev.

Kuj Paub tias, lub thawv docker ruaj ntseg li cas? Docker ntim yog, los ntawm lub neej ntawd, heev ruaj ntseg ; tshwj xeeb tshaj yog tias koj khiav koj cov txheej txheem raws li cov neeg siv tsis muaj cai hauv lub thawv . Koj tuaj yeem ntxiv ib txheej ntxiv ntawm kev nyab xeeb los ntawm kev ua kom AppArmor, SELinux, GRSEC, lossis lwm qhov tsim nyog hardening system.

Qhov thib ob, vim li cas kuv lub thawv Docker tawm?

koj yog pib khiav lub thawv hauv keeb kwm yav dhau hauv kev sib tham sib hom. Thaum koj txuas thiab tawm hauv lub thawv los ntawm CTRL + D (feem ntau txoj kev mus rau ua nws), koj nres lub thawv vim koj nyuam qhuav tua tus lub ntsiab txheej txheem uas koj pib koj thawv nrog tus saum hais kom ua. txib at tus kawg ntawm koj tsab ntawv.

Lub thawv ntim khoom muaj cai yog dab tsi?

Cov thawv ntim tshwj xeeb raug txhais raws li ib yam thawv qhov twg thawv uid 0 yog mapped rau tus tswv tsev uid 0. Nyob rau hauv xws li ntim , kev tiv thaiv tus tswv tsev thiab kev tiv thaiv kev khiav tawm yog ua tiav tag nrho los ntawm Kev Tswj Xyuas Kev Ruaj Ntseg (apparmor, selinux), cov ntxaij lim dej seccomp, xa rov qab cov peev txheej thiab cov npe chaw.

Pom zoo: