Modern Full-Stack Development


Starting (and Stopping) Containers



Download 5,64 Mb.
Pdf ko'rish
bet98/107
Sana06.08.2021
Hajmi5,64 Mb.
#140576
1   ...   94   95   96   97   98   99   100   101   ...   107
Bog'liq
Modern Full-Stack Development Using TypeScript, React, Node

 Starting (and Stopping) Containers
You could start a container again if you want:
docker start
For this hello-world container, however, nothing will happen when you do this, and 
the container will exit immediately. It only seems to show that helpful information when 
initially run.
You can also stop a running container:
docker stop
As a quick aside, at this point, you may realize that entering the container IDs 
that Docker generates can get annoying in a hurry (and, plus, you’ve seen me write 
, implying you can do something other than using the default 
ID). Fortunately, Docker also generates a name for each container, as you can see in the 
ps output (and it can often be quite entertaining to see what it spits out!). However, it’s 
more user-friendly to give it a name yourself, which you can do with an option:
docker run --name MyAwesomeContainer hello-world
Now you should see a container with the specified name, which you can then use to 
interact with it.
Chapter 12   Bringing the Dev Ship into harBor: DoCker


355

Download 5,64 Mb.

Do'stlaringiz bilan baham:
1   ...   94   95   96   97   98   99   100   101   ...   107




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©hozir.org 2024
ma'muriyatiga murojaat qiling

kiriting | ro'yxatdan o'tish
    Bosh sahifa
юртда тантана
Боғда битган
Бугун юртда
Эшитганлар жилманглар
Эшитмадим деманглар
битган бодомлар
Yangiariq tumani
qitish marakazi
Raqamli texnologiyalar
ilishida muhokamadan
tasdiqqa tavsiya
tavsiya etilgan
iqtisodiyot kafedrasi
steiermarkischen landesregierung
asarlaringizni yuboring
o'zingizning asarlaringizni
Iltimos faqat
faqat o'zingizning
steierm rkischen
landesregierung fachabteilung
rkischen landesregierung
hamshira loyihasi
loyihasi mavsum
faolyatining oqibatlari
asosiy adabiyotlar
fakulteti ahborot
ahborot havfsizligi
havfsizligi kafedrasi
fanidan bo’yicha
fakulteti iqtisodiyot
boshqaruv fakulteti
chiqarishda boshqaruv
ishlab chiqarishda
iqtisodiyot fakultet
multiservis tarmoqlari
fanidan asosiy
Uzbek fanidan
mavzulari potok
asosidagi multiservis
'aliyyil a'ziym
billahil 'aliyyil
illaa billahil
quvvata illaa
falah' deganida
Kompyuter savodxonligi
bo’yicha mustaqil
'alal falah'
Hayya 'alal
'alas soloh
Hayya 'alas
mavsum boyicha


yuklab olish