Docker Companies yog dab tsi?
Docker Companies yog dab tsi?

Video: Docker Companies yog dab tsi?

Video: Docker Companies yog dab tsi?
Video: Hmong new song 2016 - Yog dab tsi - Xub Hluav Taws (Official MV) 2024, Kaum ib hlis
Anonim

ntsiab lus . Ib txoj hauv kev mus rau ib phau ntawv uas muaj Dockerfile, lossis url rau git repository. Thaum tus nqi muab yog ib txoj kev txheeb ze, nws yog txhais raws li qhov txheeb ze ntawm qhov chaw Sau ntawv ntaub ntawv. Phau ntawv no kuj yog tus tsim ntsiab lus uas yog xa mus rau Docker dab.

Khaws qhov no hauv kev xav, dab tsi yog qhov ntsiab lus ntawm docker?

Cov docker build hais kom ua Docker cov duab los ntawm a Dockerfile thiab ib ntsiab lus ”. Ib build ntsiab lus yog cov txheej txheem ntawm cov ntaub ntawv nyob rau hauv qhov teev PATH lossis URL. Cov txheej txheem tsim tuaj yeem xa mus rau ib qho ntawm cov ntaub ntawv hauv ntsiab lus . Piv txwv li, koj qhov tsim tuaj yeem siv daim ntawv qhia COPY los siv cov ntaub ntawv hauv ntsiab lus.

Tsis tas li ntawd, 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.

Tib neeg kuj nug, Docker compose siv rau dab tsi?

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.

Dab tsi yog qhov txuas hauv Docker compose?

Raws li cov Docker Compose tus sau -file documentation: depends_on - Qhia kev vam meej ntawm cov kev pabcuam. txuas - Txuas rau ntim hauv lwm qhov kev pabcuam thiab tseem qhia txog kev vam khom ntawm cov kev pabcuam tib yam li nyob_on.

Pom zoo: