Cov ntaub ntawv stack yog dab tsi?
Cov ntaub ntawv stack yog dab tsi?

Video: Cov ntaub ntawv stack yog dab tsi?

Video: Cov ntaub ntawv stack yog dab tsi?
Video: Yog hmoov dab tsi - Gao Nou Kue ft. Mang Vang (Official Music Video) New song 2020 2024, Kaum ib hlis
Anonim

Los ntawm Huab pawg ntaub ntawv YAML siv, nws hais tias a pawg ntaub ntawv yog a ntaub ntawv hauv YAML hom uas txhais ib lossis ntau qhov kev pabcuam, zoo ib yam li docker-compose. yml ib ntaub ntawv tab sis nrog ob peb extensions.

Ntawm no, dab tsi yog pawg Docker?

docker pawg yog ib lo lus txib uas tau muab tso rau hauv Docker CLI. Nws cia koj tswj ib pawg ntawm Docker ntim los ntawm Docker Swarm. Nws tsuas yog tshwm sim ob qho tib si Docker Compose thiab docker pawg hais kom txhawb ib yam docker - sau ntawv.

Ib yam li ntawd, Docker stack Yml yog dab tsi? yml ib cov ntaub ntawv los nqa pawg ntawm Docker ntim, tsis tas yuav nruab Docker Sau ntawv. Cov lus txib hu ua docker pawg , thiab nws zoo nkaus li zoo ib yam rau docker - sau ntawv.

Ib yam li ntawd, nws tau nug, Docker stack yog dab tsi?

Thaum khiav Docker Cav hauv swarm hom, koj tuaj yeem siv docker pawg deploy rau xa mus daim ntawv thov ua tiav pawg mus rau swarm. Cov xa mus txib txais a pawg piav qhia nyob rau hauv daim ntawv ntawm cov ntaub ntawv Compose. Cov docker pawg deploy cov lus txib txhawb nqa cov ntaub ntawv Compose ntawm "3.0" lossis siab dua.

Dab tsi yog qhov txawv ntawm Docker compose thiab Swarm?

Docker Swarm khiav ntau lub thawv ntawv, ib yam li Sau ntawv ua. Tus yuam sij txawv yog tias Swarm teem sijhawm thiab tswj koj cov ntim thoob plaws ntau lub tshuab, thaum Sau ntawv teem sijhawm thiab tswj cov ntim ntawm ib tus tswv tsev nkaus xwb. Koj tuaj yeem siv tus qauv Sau ntawv file kom xa koj daim ntawv thov mus rau lub Swarm.

Pom zoo: