Uyifaka njani i-Docker kwi-Ubuntu 18.04 kunye neziphumo?

I-Docker kwi-Ubuntu

Ukusetyenziswa Ubungqina buya busiba yinto efanelekileyo yonke imihla, kuba ngophuculo kunye neempawu ezintsha abazibonelelayo, zenza kube lula ukusebenzisa itekhnoloji. Oku kwenza ukuba zombini iinkampani kunye nabasebenzisi bokugqibela babe nokukhululeka kunye nokhuseleko lokukwazi ukuyisebenzisa.

Naye Unokwenza imisebenzi eyahlukeneyo kwaye usebenze zombini iinkqubo zokusebenza kunye nokusetyenziswa ngaphandle kokuyekisa inkqubo yokusebenza yomamkeli, kuba basebenza kwindawo ethe qelele.

Ngeli thuba masiqwalasele iDocker, ethi sisicelo esivulekileyo somnqamlezo que Ihambisa ngokuzenzekelayo ukuhanjiswa kwezicelo ngaphakathi kwezikhongozeli zesoftware, ukubonelela ngendawo eyongezelelweyo yokutsala kunye nokuzenzekelayo kokuSebenza kwinqanaba lenqubo yokusebenza kwiLinux.

Uninzi lwenu sele niluvile okanye lwalusebenzisa iDocker kuba sele lidumile, nalo ngokusisiseko sinokwenza ubonelelo lweekhonteyina kwinqanaba lenkqubo yokusebenza, kodwa ngengqiniseko yokuba iDocker isebenzisa izixhobo ezizimeleyo zokwahlulahlula i-Linux kernel, ezinje ngamaqelana kunye neendawo zamagama ukuvumela izikhongozeli ezizimeleyo ukuba zisebenze kwimeko enye yeLinux, ukuthintela ngaphezulu kokuqala nokugcina oomatshini ababonakalayo.

I-Docker iphatha iinguqulelo ezimbini enye ehlawulelwa iinkampani ze-EE (Ushicilelo lweshishini) Enye inguqulelo yasimahla yona ivela kuluntu lwe-CE (KuLuntu lweNguqulelo).

Kwityala lethu vSiyazi ukuba sisebenzise uhlobo lwasimahla.

Ngaphambi kokuqala ufakelo Kuya kufuneka sikhuphe naluphi na ufakelo olwenziwe ngaphambili kwimeko yokuhlaziya, Ukongeza kukuxelela ukuba le ndlela iyasebenza nakwi-Ubuntu Artful 17.10, Ubuntu Xenial 16.04 kunye ne-Ubuntu Trusty 14.04.

Ngoku dkufuneka sivule i-terminal (Ctrl + Alt + T) kunye sebenzisa lo mthetho ulandelayo Ukususa ufakelo lwangaphambili lweDocker:

sudo apt-get remove docker docker-engine docker.io

Yenza le nto, ukuyaixesha kufuneka sihlaziye iindawo zethu zokugcina no:

sudo apt-get update

Kwaye nayiphi na iphakheji:

sudo apt-get upgrade

Faka iDocker CE kwi-Ubuntu 18.04

faka i-docker kwi-Ubuntu

Kuya kufuneka sifake ukuxhomekeka iyafuneka kwi-Docker ngale miyalelo:

sudo apt-get install \

apt-transport-https \

ca-certificates \

curl \

software-properties-common

Uyenzile ngoku Kuya kufuneka singenise isitshixo se-GPG:

curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -

Kuya kufuneka siqinisekise ukuba i-fingerprint Ulwandle Inkcazo: 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, Ndijonge oonobumba bokugqibela abasi-8 bomnwe.

Kule nto Singawuqhuba lo myalelo:

sudo apt-key fingerprint 0EBFCD88

Yeyiphi ekufuneka ibuyise into enje:

pub   4096R/0EBFCD88 2017-02-22

Key fingerprint = 9DC8 5822 9FC7 DD38 854A  E2D8 8D81 803C 0EBF CD88

uid Docker Release (CE deb) <docker@docker.com>

sub 4096R/F273FCD8 2017-02-22

Ngoku kufuneka songeze indawo yokugcina izinto kwinkqubo ngomyalelo olandelayo:

sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable"

Ukuba ufumana impazamo ungayongeza ngesandla ngokuhlela imithombo yolwazi, ukwenza oku ukusuka kwisiphelo sendlela osithayiphayo:

sudo nano /etc/apt/sources.list

Kwaye wongeza lo mgca ulandelayo, ngokukhethekileyo ekugqibeleni:

deb [arch=amd64] https://download.docker.com/linux/ubuntu bionic stable

Uyifaka phi iBionic ukuba awusebenzisi i-18.04 ngobugcisa be-17.10, xenial ye-16.04 okanye ethembekileyo ye-14.04.

Nje ukuba kwenziwe, sihlaziya uluhlu lwethu lwezinto zokugcina kunye:

sudo apt-get update

Kwaye ngoku ngoku singafaka iDocker kwinkqubo yethu, kufuneka sichwetheze lo myalelo ulandelayo:

sudo apt-get install docker-ce

Nje ukuba ukufakela kugqityiwe, kuyacetyiswa ukuba uqale kabusha ikhompyuter yakho, kuba iinkonzo zeDocker ziqala ngokuzenzekelayo xa uqala inkqubo yakho.

ukuba Qinisekisa ukuba iDocker ifakwe ngempumelelo kwaye sele isebenza kwinkqubo sinokwenza uvavanyo olulula, kufuneka sivule i-terminal kwakhona kwaye senze lo mthetho ulandelayo:

sudo docker run hello-world

Gqibela Kuya kufuneka songeze iqela leDocker kumsebenzisi wethu Kuba oku kuyilelwe kwinkqubo, kodwa ayongezwanga ngokuzenzekelayo, ukwenza oku kwisiphelo sendlela esiyenzayo:

sudo usermod -aG docker $USER

Kwaye nge-voila, ukuba sifuna ukuvuselela ingxelo yethu ye-Docker iye kutshanje, kufuneka sifeze:

sudo apt-get install docker-ce

Ukuba ufuna ukwazi ngakumbi ngayo, unokuqhagamshelana nesikhokelo sayo sokufakwa kumaqonga amaninzi, kwikhonkco le nto.


Umxholo wenqaku uyabambelela kwimigaqo yethu imigaqo yokuziphatha yokuhlela. Ukuxela impazamo cofa apha.

Izimvo ezi-5, shiya ezakho

Shiya uluvo lwakho

Idilesi yakho ye email aziyi kupapashwa. ezidingekayo ziphawulwe *

*

*

  1. Uxanduva lwedatha: UMiguel Ángel Gatón
  2. Injongo yedatha: Ulawulo lwe-SPAM, ulawulo lwezimvo.
  3. Umthetho: Imvume yakho
  4. Unxibelelwano lwedatha: Idatha ayizukuhanjiswa kubantu besithathu ngaphandle koxanduva lomthetho.
  5. Ukugcinwa kweenkcukacha
  6. Amalungelo: Ngalo naliphi na ixesha unganciphisa, uphinde uphinde ucime ulwazi lwakho.

  1.   Yoel lopez sitsho

    Ndinengxaki xa ndingena kunye ne-wifi

    1.    UDiego A. Arcis sitsho

      YouTube?

  2.   jesus sitsho

    Kwi-Ubuntu 18 ayisebenzi. Ukhe wayizama kuqala?

  3.   Sdk_Ming sitsho

    Mholweni, enkosi ngesifundo, sivela kwihlazo. Thetha nje ukuba umgca wokugcina uyasilela, kuba i-Docker ibonakala ingekakhuphi uguqulelo "oluzinzileyo" kwaye kufuneka wongeze "uvavanyo"

    Echanekileyo iya kuba:

    deb [arch = amd64] https://download.docker.com/linux/ubuntu Uvavanyo lwe-bionic

    Iqinisekisiwe kwaye iyasebenza.

    Phendula nge quote

  4.   DCR sitsho

    enkosi!….