Docker Cookbook


| Chapter 8: Docker in the Cloud



Download 6,31 Mb.
Pdf ko'rish
bet205/260
Sana21.04.2022
Hajmi6,31 Mb.
#570749
1   ...   201   202   203   204   205   206   207   208   ...   260
Bog'liq
Docker Cookbook

262 | Chapter 8: Docker in the Cloud


With one instance started, wait for it to run and register in the cluster. Then if you
describe
the cluster again, you will see that the default cluster has switched to active
state. You can also list container instances:
$ aws ecs describe-clusters
---------------------------------------------------------------------------------
| DescribeClusters |
+-------------------------------------------------------------------------------+
|| clusters ||
|+-----------------------------------------------------+--------------+--------+|
|| clusterArn | clusterName | status ||
|+-----------------------------------------------------+--------------+--------+|
|| arn:aws:ecs:us-east-1:587432148683:cluster/default | default | ACTIVE ||
|+-----------------------------------------------------+--------------+--------+|
$ aws ecs list-container-instances
--------------------------------------------------------------------------------
| ListContainerInstances |
+------------------------------------------------------------------------------+
|| containerInstanceArns ||
|+----------------------------------------------------------------------------+|
|| arn:aws:ecs:us-east-1:541234428683:container-instance/ ... ||
|+----------------------------------------------------------------------------+|
Starting additional instances increases the size of the cluster:
$ aws ecs list-container-instances
--------------------------------------------------------------------------
| ListContainerInstances |
+------------------------------------------------------------------------+
|| containerInstanceArns ||
|+----------------------------------------------------------------------+|
|| arn:aws:ecs:us-east-1:587342368683:container-instance/75738343-... ||
|| arn:aws:ecs:us-east-1:587423448683:container-instance/b457e535-... ||
|| arn:aws:ecs:us-east-1:584242468683:container-instance/e5c0be59-... ||
|| arn:aws:ecs:us-east-1:587421468683:container-instance/e62d3d79-... ||
|+----------------------------------------------------------------------+|
Since these container instances are regular EC2 instances, you will see them in your
EC2 console. If you have set up an SSH key properly and opened port 22 on the secu‐
rity group used, you can also 
ssh
to them:
$ ssh -i ~/.ssh/id_rsa_ecs ec2-user@52.1.224.245
...
__| __| __|
_| ( \__ \ Amazon ECS-Optimized Amazon Linux AMI
____|\___|____/
Image created: Thu Dec 18 01:39:14 UTC 2014
PREVIEW AMI
9 package(s) needed for security, out of 10 available

Download 6,31 Mb.

Do'stlaringiz bilan baham:
1   ...   201   202   203   204   205   206   207   208   ...   260




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