Yuav ua li cas rub ib daim duab los ntawm azure thawv sau npe?
Yuav ua li cas rub ib daim duab los ntawm azure thawv sau npe?

Video: Yuav ua li cas rub ib daim duab los ntawm azure thawv sau npe?

Video: Yuav ua li cas rub ib daim duab los ntawm azure thawv sau npe?
Video: AC Temperature Setting and Display 2024, Kaum ib hlis
Anonim

Tshem tawm duab ntawm koj Azure thawv sau npe , koj tuaj yeem siv lub Azure CLI hais kom ua az acr repository rho tawm. Piv txwv li, cov lus txib hauv qab no tshem tawm qhov tshwm sim uas tau hais los ntawm cov qauv / nginx: cov ntawv kawg, cov ntaub ntawv txheej txheej tshwj xeeb, thiab tag nrho lwm cov cim npe hais txog qhov tshwm sim.

Tsis tas li ntawd, kuv yuav thawb cov duab docker rau Azure li cas?

Nias a duab docker mus rau hauv Azure thawv kev sau npe siv Azure CLI. Ua ntej, tsim ib qho Azure thawv sau npe raws li qhia ntawm no. Thawj tus ID nkag mus rau hauv thawv npe, az acr tus ID nkag mus -n myregistry, cov lus txib no yog wrapper rau saum docker nkag mus. Tau txais tus ID nkag mus server npe, az acr daim ntawv, kuv yog myregistry.azurecr.io.

Tom qab ntawd, lo lus nug yog, yuav ua li cas kuv thawb cov duab docker mus rau qhov chaw khaws cia ntiag tug? Muaj ob txoj kev xaiv:

  1. Mus rau hauv lub hub, thiab tsim lub repository ua ntej, thiab kos nws li ntiag tug. Tom qab ntawd thaum koj thawb mus rau qhov repo, nws yuav yog tus kheej.
  2. nkag mus rau hauv koj tus account docker hub, thiab mus rau koj qhov chaw thoob ntiaj teb.

Dhau li ntawd, Azure thawv sau npe yog dab tsi?

Azure Container Registry yog ib tug tswj, private Docker sau npe kev pabcuam raws li qhov chaw qhib Docker Registry 2.0. Siv Azure thawv sau npe nrog koj uas twb muaj lawm thawv kev txhim kho thiab xa cov kav dej, lossis siv Azure Container Registry Cov hauj lwm los tsim thawv cov duab hauv Azure.

Yuav ua li cas koj tsim lub thawv piv txwv hauv Azure?

Tsim a thawv piv txwv Xaiv tus Tsim ib resource > Ntim > Container Instances . Ntawm nplooj ntawv Basics, nkag mus rau cov txiaj ntsig hauv qab no hauv pab pawg Resource, Thawv npe, og Thawv duab ntawv thawv. Cia lwm qhov tseem ceeb ntawm lawv qhov qub, tom qab ntawd xaiv OK.

Pom zoo: