Cov txheej txheem:

Kuv yuav tso tseg ntau lub thawv Docker li cas?
Kuv yuav tso tseg ntau lub thawv Docker li cas?

Video: Kuv yuav tso tseg ntau lub thawv Docker li cas?

Video: Kuv yuav tso tseg ntau lub thawv Docker li cas?
Video: kuv yog tus thaum koj thuam Tub huas Xyooj MV 2023 2024, Tej zaum
Anonim

Nres thiab tshem tawm tag nrho thawv

Koj tuaj yeem tau txais ib daim ntawv teev tag nrho Docker ntim ntawm koj qhov system siv lub docker thawv ls -aq lus. Rau nres tag nrho khiav thawv siv cov docker thawv nres hais kom ua raws li ib daim ntawv teev tag nrho thawv IDs.

Yog li ntawd, koj tuaj yeem khiav ntau lub thawv Docker?

Yog lawm. Koj tuaj yeem khiav ntau lub thawv ntawm ib server, thiab nws tsis txwv rau tus naj npawb ntawm CPUs. Koj cov lus txib tsim thiab pib raws nraim 1 thawv uas muaj kev nkag mus rau feem ntau 16 CPUs (thiab hauv qhov piv txwv thib 2 tsuas yog CPUs 0-15).

Ib yam li ntawd, kuv yuav nres Docker li cas? Txoj Kev Zoo Tshaj Plaws, Nres Lub Thawv Yog tias koj tau pib lub thawv sib tham, thiab nyob hauv ib puag ncig zoo li bash, koj feem ntau ntaus ctrl + d rau tawm lub rooj sib tham. Yog tias nws yog lwm cov txheej txheem khiav, kev sib xyaw ua ke yuav yog ctrl + c.

Yog li, kuv yuav sau tag nrho cov ntim hauv Docker li cas?

Sau Docker Ntim

  1. Raws li koj tuaj yeem pom, daim duab saum toj no qhia tias tsis muaj cov thawv ntim khoom.
  2. Sau cov thawv los ntawm lawv tus ID siv -aq (ntsiag to): docker ps -aq.
  3. Txhawm rau sau tag nrho cov ntaub ntawv loj ntawm txhua lub thawv, siv –s (loj): docker ps –s.
  4. Cov lus txib ps muab ob peb kab lus qhia:

Kuv yuav txuas ntau lub thawv Docker li cas?

Cov kauj ruam

  1. Tsim cov tes hauj lwm uas koj xav txuas rau koj lub thawv. $ docker network tsim bluenet $ docker network tsim rednet.
  2. Kauj ruam 2 a. Khiav lub thawv.
  3. Kauj ruam 2 b.
  4. Txuas cov txuas txuas ntxiv.
  5. Kauj ruam 3 b.
  6. Tam sim no xyuas kom meej tias lub thawv khiav txuas nrog ntau lub network.

Pom zoo: