Cov txheej txheem:

Docker overlay yog dab tsi?
Docker overlay yog dab tsi?

Video: Docker overlay yog dab tsi?

Video: Docker overlay yog dab tsi?
Video: Deep Dive in Docker Overlay Networks 2024, Kaum ib hlis
Anonim

Cov overlay network tsav tsheb tsim ib tug faib network ntawm ntau yam Docker daemon hosts. Lub network no nyob rau sab saum toj ntawm ( overlays ) cov koom haum tshwj xeeb hauv network, tso cai rau cov thawv txuas nrog nws (nrog rau cov chaw pabcuam swarm) sib txuas lus kom ruaj ntseg thaum qhib encryption.

Tsis tas li ntawd, koj yuav ua li cas tsim lub network overlay?

Siv tus neeg siv-txhim kho overlay network

  1. Tsim tus neeg siv-txhim kho overlay network.
  2. Pib ib qho kev pabcuam siv lub network overlay thiab tshaj tawm chaw nres nkoj 80 rau chaw nres nkoj 8080 ntawm Docker host.
  3. Khiav docker network tshuaj xyuas kuv-overlay thiab xyuas kom meej tias cov haujlwm pabcuam kuv-nginx txuas nrog rau nws, los ntawm saib cov thawv ntim khoom.

Tsis tas li ntawd, Libnetwork yog dab tsi? Libnetwork siv Container Network Model (CNM) uas ua raws li cov kauj ruam uas yuav tsum tau muab kev sib txuas lus rau cov thawv thaum muab qhov kev paub daws teeb meem uas tuaj yeem siv los txhawb ntau lub network tsav tsheb.

Raws li txoj cai, kuv yuav ua li cas ntxuav kuv Docker overlay?

  1. Tshem tawm qhov piv txwv docker los ntawm ELB.
  2. Shutdown docker systemctl nres docker rm -rf /var/lib/docker/overlay/*
  3. Ua cov txiaj ntsig ntawm cov lus txib rau d hauv $ (nrhiav /var/lib/docker/image/overlay -type d -name '*sha256*'); ua ncha rm -rf $d/*; ua tiav.
  4. reboot (qhov yooj yim tshaj los nqa txhua yam rov qab)

Docker_gwbridge yog dab tsi?

Cov docker_gwbridge yog ib qho txuas txuas txuas uas txuas cov xov tooj sib tshooj (suav nrog lub ingress network) rau ib tus neeg Docker daemon lub cev lub cev. Los ntawm lub neej ntawd, txhua lub thawv qhov kev pabcuam tau khiav yog txuas nrog nws lub zos Docker daemon tus tswv tsev docker_gwbridge network.

Pom zoo: