Cov txheej txheem:

Kuv yuav pib lub thawv docker sau li cas?
Kuv yuav pib lub thawv docker sau li cas?

Video: Kuv yuav pib lub thawv docker sau li cas?

Video: Kuv yuav pib lub thawv docker sau li cas?
Video: Kawm Blend Consonant, Cov ob tug niam ntawv English lub suab hais li cas Qib-3 2024, Kaum ib hlis
Anonim

Pib nrog Docker Compose

  1. Yam yuavtsum tau kawm uantej.
  2. Kauj ruam 1: Teeb tsa.
  3. Kauj ruam 2: Tsim ib Dockerfile .
  4. Kauj Ruam 3: Txhais cov kev pabcuam hauv a Sau ntawv ntaub ntawv.
  5. Kauj ruam 4: Tsim thiab khiav koj app nrog Sau ntawv .
  6. Kauj ruam 5: Kho kom raug tus Sau ntawv cov ntaub ntawv ntxiv rau khi mount.
  7. Kauj ruam 6: Rov tsim thiab khiav lub app nrog Sau ntawv .
  8. Kauj ruam 7: Hloov daim ntawv thov.

Xav txog qhov no, kuv yuav pib lub thawv Docker uas twb muaj lawm li cas?

Restart ib thawv uas twb muaj lawm , peb yuav siv lub pib hais kom ua nrog -a chij kom txuas rau nws thiab tus chij -i kom nws sib tham sib, ua raws los ntawm ob qho tib si thawv ID los yog npe. Nco ntsoov hloov tus ID ntawm koj thawv hauv cov lus txib hauv qab no: docker pib -ai 11cc47339ee1.

Tsis tas li ntawd, kuv yuav ua li cas thiaj li khiav Docker sau hauv hom cais? Khiav hauv keeb kwm yav dhau Khiav Docker Compose hauv hom detached hla tus chij -d rau docker - sau ntawv nce. Siv docker - sau ntawv ps los tshuaj xyuas qhov koj muaj khiav.

Tsis tas li lo lus nug yog, dab tsi yog qhov docker sau cov ntaub ntawv?

Cov Sau cov ntaub ntawv yog YAML ntaub ntawv txhais cov kev pab cuam, networks thiab ntim. Txoj kev default rau a Sau cov ntaub ntawv yog./ docker - sau ntawv . yml ib . Ib qho kev pabcuam txhais muaj cov kev teeb tsa uas siv rau txhua lub thawv pib rau qhov kev pabcuam ntawd, zoo li dhau cov kab lus hais kom ua docker thawv tsim.

Kuv yuav tsim lub thawv docker los ntawm ib daim duab li cas?

Yuav Ua Li Cas Tsim Docker Duab Los Ntawm Lub Thawv

  1. Kauj ruam 1: Tsim ib lub thawv ntim. Cia peb pib los ntawm kev tsim lub thawv khiav.
  2. Kauj Ruam 2: Tshawb xyuas cov duab.
  3. Kauj Ruam 3: Tshawb xyuas cov thawv.
  4. Kauj ruam 4: Pib lub thawv.
  5. Kauj Ruam 5: Hloov kho lub thawv khiav.
  6. Kauj Ruam 6: Tsim Cov Duab Los Ntawm Lub Thawv.
  7. Kauj ruam 7: Tag cov duab.
  8. Kauj ruam 8: Tsim cov duab nrog cim npe.

Pom zoo: