A cikin Docker, zaku iya sarrafawa container
ta ƙirƙira, farawa, tsayawa, da share su. Anan akwai cikakken jagora kan gudanarwa container
a Docker
:
Ƙirƙirar a Container
Don ƙirƙirar container
, kuna buƙatar amfani da hoton data kasance. Yi amfani da docker run
umarnin tare da sunan hoton da kowane zaɓi masu mahimmanci.
Misali, zai ƙirƙiri sabo daga cikin kuma sanya masa suna "na ". docker run -it --name mycontainer nginx
container
"nginx" image
container
Farawa a Container
Don fara ƙirƙira container
, yi amfani da docker start
umarnin da container
suna ko ID ke biye.
Misali, zai fara mai suna "na ". docker start mycontainer
container
container
Tsayawa a Container
Don tsaida gudu container
, yi amfani da docker stop
umarnin da container
suna ko ID ke biye.
Misali, zai dakatar da mai suna "na ". docker stop mycontainer
container
container
Share a Container
Don share tsayawa container
, yi amfani da docker rm
umarnin da container
suna ko ID ke biye. Misali, zai share mai suna "na ". Lura cewa dole ne a tsaya kafin gogewa. docker rm mycontainer
container
container container
Jeri Container
Don lissafin duk masu gudana container
, yi amfani da docker ps
umarnin. Don lissafin duk container
sun haɗa da waɗanda aka dakatar, yi amfani da docker ps -a
umarnin.
Lura cewa dokokin da ke sama suna ba da wasu ƙarin zaɓuɓɓuka don daidaita ɗabi'a da daidaitawar container
. Koma zuwa Docker
takaddun don ƙarin cikakkun bayanai kan zaɓuɓɓuka da jagororin gudanarwa container
a cikin Docker
.