Cov txheej txheem:

Docker file yog dab tsi?
Docker file yog dab tsi?

Video: Docker file yog dab tsi?

Video: Docker file yog dab tsi?
Video: Kev cai tshoob kos ntus 45: rhaikau, txheebqhua samtsum, luamxim mov dejtxiag yog dab tsi 2024, Hlis ntuj nqeg
Anonim

Programming lus siv: Mus (programming language)

Yog li ntawd, dab tsi yog kev siv Docker cov ntaub ntawv?

A Dockerfile yog a siv cov ntaub ntawv ua ib Docker duab rau koj qhov tshwj xeeb. Nrog ib Dockerfile tsim, koj tuaj yeem yooj yim tsim tib daim duab ntau dua, tsis tas yuav taug kev los ntawm tus txheej txheem manually.

Ib tug kuj yuav nug, dab tsi yog daim duab hauv Docker? A Docker duab yog cov ntaub ntawv, muaj ntau txheej txheej, uas yog siv los ua cov cai hauv a Docker thawv. Docker yuav siv cov peev txheej cais tawm hauv OS kernel, xws li cgroups hauv Linux, los khiav ntau lub thawv ywj pheej ntawm tib OS.

Tib neeg kuj nug, Kuv yuav sau cov ntaub ntawv docker li cas?

Pib nrog Docker Compose

  1. Kauj ruam 1: Teeb tsa.
  2. Kauj ruam 2: Tsim ib Dockerfile.
  3. Kauj ruam 3: Txhais cov kev pab cuam nyob rau hauv ib tug Compose ntaub ntawv.
  4. Kauj ruam 4: Tsim thiab khiav koj app nrog Compose.
  5. Kauj ruam 5: Kho kom raug cov ntaub ntawv Compose ntxiv ib khi mount.
  6. Kauj ruam 6: Rov tsim thiab khiav lub app nrog Compose.
  7. Kauj ruam 7: Hloov daim ntawv thov.
  8. Kauj Ruam 8: Sim nrog qee lwm cov lus txib.

Docker thiab Docker duab yog dab tsi?

Ntim yog cov ntawv thov npaj tsim los ntawm Cov duab Docker los yog koj hais tau a Docker Thawv yog ib qho kev ua haujlwm ntawm a Docker Duab thiab lawv tuav tag nrho cov pob uas xav tau los khiav daim ntawv thov. Qhov no tshwm sim yog qhov kawg siv ntawm Docker.

Pom zoo: