Cov txheej txheem:

Mount hauv Docker yog dab tsi?
Mount hauv Docker yog dab tsi?

Video: Mount hauv Docker yog dab tsi?

Video: Mount hauv Docker yog dab tsi?
Video: Military Tactical Watches - Top 10 Toughest Military G-Shock Watches for Tactical & Outdoors 2024, Kaum ib hlis
Anonim

Thaum koj siv ib lub khi Mount , cov ntaub ntawv lossis cov npe ntawm lub tshuab host mounted rau hauv ib lub thawv. Cov ntaub ntawv lossis cov ntawv qhia yog hais txog los ntawm nws txoj hauv kev tag nrho ntawm lub tshuab host. Cov ntaub ntawv lossis phau ntawv qhia tsis tas yuav muaj nyob rau ntawm Docker host xa. Nws yog tsim los ntawm kev thov yog tias nws tseem tsis tau muaj.

Ib yam li ntawd, koj tuaj yeem nug, Kuv yuav ua li cas rau lub thawv docker?

Ua raws li cov kauj ruam hauv qab no:

  1. Tsis txhob khiav lub thawv Docker siv cov lus txib hauv qab no: docker nres workbench.
  2. Tshem lub thawv uas twb muaj lawm: docker rm workbench.
  3. Luam ib txoj kev mus rau lub nplaub tshev uas muaj koj cov ntaub ntawv.
  4. Khiav lub thawv Docker txhawm rau txuas lub nplaub tshev nrog koj cov ntaub ntawv siv cov lus txib hauv qab no:

Tsis tas li ntawd, kev siv Docker ntim yog dab tsi? docker ntim tsim tsim ib ntim tsis tas yuav txhais a Dockerfile thiab tsim ib daim duab thiab khiav ib lub thawv. Nws yog siv kom sai tso cai rau lwm lub ntim rau mount hais ntim.

Hais txog qhov no, $(PWD hauv Docker yog dab tsi?

PWD yog a Docker chaw ua si uas tso cai rau cov neeg siv khiav Docker cov lus txib hauv ib lub vib nas this. Nws muab cov kev paub dhau los ntawm kev muaj lub tshuab dawb Alpine Linux Virtual hauv browser, qhov twg koj tuaj yeem tsim thiab khiav Docker ntim thiab txawm tsim pawg hauv Docker Swarm hom.

Docker ntim cov ntaub ntawv nyob qhov twg?

Docker volumes Configuration cov ntaub ntawv ntawm ntim yog khaws cia rau hauv /var/lib/ docker /volumes folder, nrog rau txhua daim ntawv teev npe uas sawv cev rau lub npe ntim raws li tus lej cim thoob ntiaj teb (UUID). Cov ntaub ntawv nws tus kheej yog khaws cia rau hauv /var/lib/ docker /vfs/dir folder (dua raws li UUID lub npe).

Pom zoo: