Docker composer yog dab tsi?
Docker composer yog dab tsi?

Video: Docker composer yog dab tsi?

Video: Docker composer yog dab tsi?
Video: Oleg Nykolyn | Dhall - a better configuration language 2024, Kaum ib hlis
Anonim

Sau ntawv yog ib qho cuab yeej rau kev txhais thiab khiav ntau lub thawv Docker daim ntawv thov. Nrog Sau ntawv , koj siv YAML cov ntaub ntawv los teeb tsa koj daim ntawv thov cov kev pabcuam. Tom qab ntawd, nrog ib qho lus txib, koj tsim thiab pib tag nrho cov kev pabcuam los ntawm koj qhov kev teeb tsa. Khiav docker - sau ntawv nce thiab Sau ntawv pib thiab khiav koj tag nrho app.

Ntxiv mus, vim li cas Docker tsim?

Lub hom phiaj ntawm docker - sau ntawv yog ua haujlwm li docker cli tab sis kom tshaj tawm ntau cov lus txib sai dua. Yuav siv tau docker - sau ntawv , koj xav tau kom encode cov commands koj tau khiav ua ntej mus rau hauv ib docker - sau ntawv . yml cov.

Kuj Paub, Docker puas yog ib feem ntawm Docker? Docker Compose tso siab rau Docker Lub cav rau txhua txoj haujlwm tseem ceeb, yog li xyuas kom koj muaj Docker Lub cav ntsia hauv zos lossis chaw taws teeb, nyob ntawm koj qhov teeb tsa. Hauv desktop systems zoo li Docker Desktop rau Mac thiab Windows, Docker Compose suav nrog li ib feem ntawm cov desktop installs.

Kuj paub, qhov txawv ntawm Docker thiab Docker sau yog dab tsi?

Lawv tsis tsuas zoo sib xws, tab sis lawv kuj coj zoo li docker cov neeg sib tw. Lub xwb txawv yog tias lawv cuam tshuam rau tag nrho cov thawv ntim khoom tsim tau txhais hauv docker - sau ntawv . yml configuration file thiab tsis yog ib lub thawv xwb. Koj yuav pom qee yam docker cov lus txib tsis nyob hauv docker - sau ntawv.

Docker ntim yog dab tsi?

Txhawm rau kom muaj peev xwm txuag tau cov ntaub ntawv (tsis tu ncua) thiab tseem sib qhia cov ntaub ntawv ntawm cov ntim khoom, Docker tuaj nrog lub tswvyim ntawm ntim . Yooj yim heev, ntim yog cov npe (lossis cov ntaub ntawv) uas nyob sab nraud ntawm lub neej ntawd Union File System thiab muaj nyob raws li cov npe thiab cov ntaub ntawv ntawm tus tswv tsev filesystem.

Pom zoo: