Modern Full-Stack Development


Your First Container: “Hello, World!” of Course!



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

 Your First Container: “Hello, World!” of Course!
Okay, so, Docker is installed and ready to go, what can we do with it? As is customary 
when talking about seemingly anything in programming, we’ll start by spinning up a 
“Hello, World!” container. As luck would have it, Docker Hub, the central and public 
image repository run by Docker, has just such an image available! We can pull the 
image down to our local machine and use it to create a container all with one, simple 
command:
docker run hello-world
Go ahead and execute that, and after a couple of seconds, you should see something 
like Figure 
12-2
 greet you.
Figure 12-2.  The Docker hello-world, up and running!
Chapter 12   Bringing the Dev Ship into harBor: DoCker


353
As I said, this did a couple of things for you automatically, and in fact, part of what it 
did was to output, well, precisely what it did! That’s helpful, isn’t it?
Now, if you execute that command again, you’ll find that it’s even faster this time, 
and that’s because the image has already been downloaded from Docker Hub and is 
stored on your system, so that step can be skipped. Instead, Docker spins up a new 
container virtually instantly.
In short, the docker run command is how you start new containers.

Download 5,64 Mb.

Do'stlaringiz bilan baham:
1   ...   91   92   93   94   95   96   97   98   ...   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