Cov txheej txheem:

Kuv yuav khiav Docker li cas?
Kuv yuav khiav Docker li cas?

Video: Kuv yuav khiav Docker li cas?

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

Docker Run Command nrog piv txwv

  1. Docker Run Command.
  2. Khiav lub Thawv hauv Foreground.
  3. Khiav lub Thawv hauv Detached Hom.
  4. Tshem lub Thawv Tom Qab Tawm.
  5. Teem lub Thawv Lub Npe.
  6. Publishing Thawv Ports.
  7. Muab cov ntaub ntawv (Mounting Volumes)
  8. Khiav lub Thawv Sib Tham Sib Tham.

Tom qab ntawd, Docker Run command yog dab tsi?

Cov docker khiav cov lus txib yog cov lus txib siv rau tso Docker thawv. Xws li, nws paub txog leej twg pib lossis khiav Docker ntim rau txhua hnub.

Ib tug kuj yuav nug, Kuv yuav ua li cas khiav ib daim duab hauv Docker? 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.

Kuj nug, Kuv yuav ua li cas thiaj li khiav lub thawv Docker uas twb muaj lawm?

Ua raws li cov kauj ruam no:

  1. Siv docker ps kom tau txais lub npe ntawm lub thawv uas twb muaj lawm.
  2. Siv cov lus txib docker exec -it / bin / bash kom tau txais lub plhaub bash hauv lub thawv.
  3. Los yog ncaj qha siv docker exec -nws los ua txhua yam lus txib uas koj teev hauv lub thawv.

Kuv yuav ua li cas thiaj li khiav docker hais kom ua hauv Windows?

Kuaj koj lub installation

  1. Qhib lub qhov rais davhlau ya nyob twg (Command Prompt lossis PowerShell, tab sis tsis yog PowerShell ISE).
  2. Khiav docker --version los xyuas kom meej tias koj muaj kev txhawb nqa ntawm Docker:
  3. Rub daim duab nyob zoo-world los ntawm Docker Hub thiab khiav lub thawv:
  4. Sau cov duab nyob zoo-world uas tau rub tawm los ntawm Docker Hub:

Pom zoo: