Cov txheej txheem:

Koj sau cov thawv ntim li cas?
Koj sau cov thawv ntim li cas?

Video: Koj sau cov thawv ntim li cas?

Video: Koj sau cov thawv ntim li cas?
Video: npauj​ kub​ xyooj​ mam​ li​ nyiag​ deev​ nej​ tej​ me​ txiv​ 2024, Tej zaum
Anonim

Sau Docker Ntim

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

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

1 Teb

  1. docker ps // Kom pom cov thawv khiav nkaus xwb.
  2. docker ps -a // Qhia tag nrho cov thawv.
  3. docker ps -l // Qhia lub thawv tsim tshiab kawg.
  4. docker ps -n=-1 // Qhia n kawg tsim ntim.
  5. docker ps -s // Kom tso saib tag nrho cov ntaub ntawv ntau thiab tsawg.

Ib yam li ntawd, ua li cas koj nres lub thawv? Rau nres a thawv koj siv lub docker nres command thiab dhau lub npe ntawm tus thawv thiab tus naj npawb ntawm vib nas this ua ntej a thawv raug tua. Lub neej ntawd tus naj npawb ntawm vib nas this cov lus txib yuav tos ua ntej tua yog 10 vib nas this.

Tsis tas li cov lus nug yog, Kuv yuav ua li cas thiaj tau txais cov npe ntawm cov thawv hauv lub plhaub?

Rau tau tus daim ntawv teev cov thawv hauv a pod , siv cov lus txib hauv qab no. Piv txwv li. Xwb, koj tuaj yeem siv lub pod piav qhia. Koj siv tau tau thiab xaiv ib qho ntawm cov qauv tso zis txhawb nqa nrog tus chij --output (-o).

Kuv yuav ua li cas thiaj paub kuv lub thawv ntim?

Mus saib kwv yees qhov loj ntawm kev khiav thawv , koj tuaj yeem siv docker ps -s hais kom ua. Ob kab ntawv sib txawv muaj feem xyuam rau qhov loj . virtual qhov loj : tus nqi ntawm cov ntaub ntawv siv rau cov duab nyeem nkaus xwb cov ntaub ntawv siv los ntawm thawv ntxiv rau cov thawv txheej sau tau qhov loj.

Pom zoo: