Sarrafa: Image Ƙirƙirar Docker, Ja da Sharewa Image

A cikin Docker, zaku iya sarrafawa image ta ƙirƙira, ja, da share su. Anan akwai cikakken jagora kan gudanarwa image a Docker:

 

Ƙirƙirar wani Image

Don ƙirƙirar image, kuna buƙatar amfani da Docker fayil ko ƙirƙira image daga wani akwati da ke akwai. Yi amfani da docker build umarnin tare da hanyar zuwa Docker fayil ɗin da sunan image.

Misali, zai ƙirƙiri sabon daga fayil ɗin a cikin kundin adireshi na yanzu kuma ya sanya masa suna "na ". docker build -t myimage . image Docker image

 

Ja da wani Image

Don cire wani image daga Docker wurin yin rajista(kamar Docker Hub), yi amfani docker pull da umarnin da sunan image.

Misali, docker pull nginx zai cire "nginx" image daga Docker Hub.

 

Share wani Image

Don share abin da ba dole ba image, yi amfani docker rmi da umarnin da suna ko ID na image.

Misali, zai share mai suna "na ". docker rmi myimage image image

Lura cewa don share wani image, bai containers kamata a ƙirƙira shi ba kuma kada a yi amfani da shi ta kowane kwantena masu gudana.

 

Jeri Image

Don lissafin duk abubuwan da ke image kan kwamfutarka, yi amfani da docker image  umarnin. Wannan umarnin zai nuna jerin sunayen image, gami da sunayensu, nau'ukan su, da girmansu.

 

Lura cewa yayin image ƙirƙirar ko aikin ja, Docker zazzage yadudduka da abubuwan dogaro masu alaƙa. Zazzagewar image na iya ɗaukar ɗan lokaci ya danganta da girman girman image intanet ɗin ku.

Koma zuwa Docker takaddun don ƙarin cikakkun bayanai kan image gudanarwa da sauran zaɓuɓɓukan da ake da su a cikin Docker.