Cov txheej txheem:

Kuv yuav upload rau Docker hub li cas?
Kuv yuav upload rau Docker hub li cas?

Video: Kuv yuav upload rau Docker hub li cas?

Video: Kuv yuav upload rau Docker hub li cas?
Video: Quas Koj Ntxhais Rau Kuv Tub - Cai Hawj Feat. Maiv Xis Vaj「Official MV」 2024, Hlis ntuj nqeg
Anonim

Tau txais daim duab rau Docker Hub

  1. Nyem rau Tsim Repository.
  2. Xaiv lub npe (piv txwv li verse_gapminder) thiab cov lus piav qhia rau koj qhov chaw cia thiab nyem Tsim.
  3. Nkag mus rau hauv Docker Hub los ntawm kab hais kom ua docker ID nkag mus --username=yourhubusername [email tiv thaiv]
  4. Xyuas cov duab ID siv docker duab.

Ua raws li qhov xav tau, Kuv yuav thawb mus rau Docker hub li cas?

Rau thawb ib daim duab rau Docker Hub , koj yuav tsum xub sau npe koj cov duab hauv zos siv koj li Docker Hub username thiab repository lub npe uas koj tsim los ntawm Docker Hub ntawm lub vev xaib. Koj tuaj yeem ntxiv ntau cov duab rau hauv qhov chaw khaws cia los ntawm kev ntxiv ib qho tshwj xeeb: rau lawv (piv txwv li docs/base:testing).

Tsis tas li ntawd, kev siv Docker hub yog dab tsi? Docker Hub yog huab-based repository uas Docker cov neeg siv thiab cov neeg koom tes tsim, sim, khaws thiab faib cov duab ntim. Los ntawm Docker Hub , tus neeg siv tuaj yeem nkag mus rau pej xeem, qhib qhov chaw khaws duab duab, thiab siv ib qhov chaw los tsim lawv tus kheej cov chaw cia khoom ntiag tug, automated tsim zog, thiab pab pawg ua haujlwm.

Tsuas yog li ntawd, kuv yuav tsim cov duab docker thiab thawb mus rau Docker hub li cas?

Ua raws li cov kauj ruam hauv qab no txhawm rau tsim thiab thawb koj daim duab Docker

  1. Kauj Ruam 1: Npaj koj lub tshuab. Tsim ib lub chaw cia GitHub uas yuav tuav cov cai los tsim cov duab.
  2. Kauj ruam 2: Tsim thiab Push duab. Koj Dockerfile yuav zoo li no:

Dab tsi yog qhov tseem ceeb ntawm Docker hub?

Docker Hub yog ib qhov chaw khaws cia cov kev pabcuam muab los ntawm Docker nrhiav thiab sib koom cov duab ntim nrog koj pab neeg. Cov yam ntxwv tseem ceeb suav nrog: Cov Chaw Nthuav Qhia: Thawb thiab rub cov duab ntim. Automated Builds: Cia li tsim lub thawv duab los ntawm GitHub thiab Bitbucket thiab thawb lawv mus Docker Hub.

Pom zoo: