Momwe mungayikitsire Docker pa Ubuntu 18.04 ndi zotumphukira?

Docker pa Ubuntu

Kugwiritsa ntchito Kukonzekera kumakhala koyenera tsiku lililonse, chifukwa ndi kusintha ndi zina zatsopano zomwe amapereka, zimapangitsa kukhala kosavuta kugwiritsa ntchito ukadaulo. Izi zimapangitsa makampani ndi ogwiritsa ntchito kumapeto kukhala omasuka komanso otha kugwiritsa ntchito.

Ndi iye mutha kuchita zochitika zosiyanasiyana ndikuyendetsa machitidwe onse ndi mapulogalamu osasokoneza makinawo, chifukwa amagwira ntchito pamalo akutali kwambiri.

Pa nthawiyi tiyeni tiwone Docker, zomwe ndi njira yotsegulira poyambira que imagwiritsa ntchito kutumizidwa kwa mapulogalamu mkati mwa mapulogalamu, kupereka zowonjezera zowonjezera ndikuwongolera kwa Virtualization pamachitidwe ogwiritsa ntchito pa Linux.

Ambiri a inu mwamvapo kapena kugwiritsa ntchito Docker chifukwa ndi yotchuka kale kwenikweni titha kupanga mawonekedwe amtundu wazitsulo pamachitidwe opangira, koma ndikutsimikiza kuti Docker amagwiritsa ntchito zida zopatula zida za Linux monga magulu ndi mipata yamaina kulola zotengera zodziyimira pawokha kuti ziziyenda nthawi imodzi ya Linux, kupewa mutu woyambira ndikusunga makina enieni.

Docker imagwira mitundu iwiri imodzi yomwe imalipira makampani a EE (Kusindikiza Kwamalonda) inayo ndi mtundu waulere womwe ndi wochokera pagulu la CE (Edition Magulu).

M'malo mwathu vTimatha kugwiritsa ntchito mtundu waulere.

Asanayambe kukhazikitsa Tiyenera kuchotsa kuyika kulikonse tisanachite kukonzanso, Kuphatikiza pakukuwuzani kuti njirayi imagwiranso ntchito ku Ubuntu Artful 17.10, Ubuntu Xenial 16.04 ndi Ubuntu Trusty 14.04.

Tsopano dtikufunika kutsegula terminal (Ctrl + Alt + T) ndi lembani lamulo lotsatirali Kuchotsa kuyika kwa Docker m'mbuyomu:

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

Ndachita izi, kutitimayenera kukonzanso zosungira zathu ndi:

sudo apt-get update

Ndipo phukusi lililonse:

sudo apt-get upgrade

Ikani Docker CE pa Ubuntu 18.04

kukhazikitsa docker pa Ubuntu

Tiyenera kukhazikitsa kudalira chofunikira kwa Docker ndi malamulo awa:

sudo apt-get install \

apt-transport-https \

ca-certificates \

curl \

software-properties-common

Ndachita izi tsopano Tiyenera kuitanitsa fungulo la GPG:

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

Tiyenera kutsimikizira kuti zala Nyanja Opanga: 9DC8 5822 9FC7 DD38 854A E2D8 8D81 803C 0EBF CD88, kufunafuna zilembo 8 zomalizira za zala.

Kwa ichi titha kuthamanga lamulo ili:

sudo apt-key fingerprint 0EBFCD88

Zomwe ziyenera kubwezera zotere:

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

Tsopano Tiyenera kuwonjezera posungira ku dongosolo ndi lamulo lotsatira:

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

Ngati mungapeze cholakwika mutha kuchiwonjezera pamanja pakusintha source.list, kuti muchite izi kuchokera ku terminal yomwe mumalemba:

sudo nano /etc/apt/sources.list

Ndipo muonjezeranso mzerewu, makamaka kumapeto:

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

Mumasintha kuti Bionic ngati simukugwiritsa ntchito 18.04 mwaluso kwa 17.10, xenial ya 16.04 kapena trusty ya 14.04.

Izi zikachitika, timasintha mndandanda wathu wamakalata ndi:

sudo apt-get update

Ndipo tsopano tsopano titha kukhazikitsa Docker pamakina athu, tikungoyenera kulemba lamulo ili:

sudo apt-get install docker-ce

Mukamaliza kukonza, ndibwino kuti muyambitse kompyuta yanu, popeza ntchito za Docker zimayamba zokha mukayamba dongosolo lanu.

Para onetsetsani kuti Docker yakhazikitsidwa bwino ndipo izi zikuyenda kale pamakinawa titha kuchita mayeso osavuta, tizingoyenera kutsegula terminal ndikutsatira lamulo ili:

sudo docker run hello-world

Mapeto Tiyenera kuwonjezera gulu la Docker kwa wogwiritsa ntchito popeza izi zimapangidwa m'dongosolo, koma sizowonjezeredwa zokha, chifukwa cha zotsogola zomwe timachita:

sudo usermod -aG docker $USER

Ndipo voila, ngati tikufuna kusintha mtundu wathu wa Docker kukhala waposachedwa kwambiri womwe tiyenera kuchita:

sudo apt-get install docker-ce

Ngati mukufuna kudziwa zambiri za izi, mutha kuwona kalozera wake wopangira ma pulatifomu ambiri, mu ulalo ndi ichi.


Zomwe zili m'nkhaniyi zikutsatira mfundo zathu za malamulo okonzekera. Kuti mufotokoze cholakwika dinani Apa.

Ndemanga za 5, siyani anu

Siyani ndemanga yanu

Anu email sati lofalitsidwa.

*

*

  1. Wotsogolera pazosankhazi: Miguel Ángel Gatón
  2. Cholinga cha deta: Control SPAM, kasamalidwe ka ndemanga.
  3. Kukhazikitsa: Kuvomereza kwanu
  4. Kulumikizana kwa zomwe zafotokozedwazo: Zomwezo siziziwululidwa kwa anthu ena kupatula pakukakamizidwa mwalamulo.
  5. Zosunga: Zosungidwa ndi Occentus Networks (EU)
  6. Ufulu: Nthawi iliyonse mutha kuchepetsa, kuchira ndikuchotsa zidziwitso zanu.

  1.   Yoel lopez anati

    Ndinali ndi mavuto ndikamalowa komanso ndi wifi

    1.    Diego A. Arcis anati

      YouTube?

  2.   Yesu anati

    Mu Ubuntu 18 sizigwira ntchito. Kodi mwayesapo poyamba?

  3.   SDK_Ming anati

    Moni, zikomo chifukwa cha phunziroli, lachokera pachinyengo. Ingonena kuti mzere wazosunga walephera, popeza Docker akuwoneka kuti sanatulutse mtundu wa "khola" komabe muyenera kuwonjezera "mayeso"

    Cholondola chingakhale:

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

    Chotsimikizika ndikugwira ntchito.

    zonse

  4.   DCR anati

    zikomo!….