Docker Cookbook


Creating an ECS Cluster | 263



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

8.12 Creating an ECS Cluster | 263


Run "sudo yum update" to apply all updates.
[ec2-user@ip-172-31-33-78 ~]$ docker ps
CONTAINER ID IMAGE ...
4bc4d480a362 amazon/amazon-ecs-agent:latest ...
[ec2-user@ip-172-31-33-78 ~]$ docker version
Client version: 1.6.2
Client API version: 1.18
Go version (client): go1.3.3
Git commit (client): 7c8fca2/1.6.2
OS/Arch (client): linux/amd64
Server version: 1.6.2
Server API version: 1.18
Go version (server): go1.3.3
Git commit (server): 7c8fca2/1.6.2
OS/Arch (server): linux/amd64
You see that the container instance is running Docker and that the ECS agent is a
container. The Docker version that you see will most likely be different, as Docker
releases a new version approximately every two months.
Discussion
Although you can use the default cluster, you can also create your own:
$ aws ecs create-cluster --cluster-name cookbook
---------------------------------------------------------------------------
| CreateCluster |
+-------------------------------------------------------------------------+
|| cluster ||
|+---------------------------------------------+--------------+----------+|
|| clusterArn | clusterName | status ||
|+---------------------------------------------+--------------+----------+|
|| arn:aws:ecs:us-east-1:...:cluster/cookbook | cookbook | ACTIVE ||
|+---------------------------------------------+--------------+----------+|
$ aws ecs list-clusters
-----------------------------------------------------------
| ListClusters |
+---------------------------------------------------------+
|| clusterArns ||
|+-------------------------------------------------------+|
|| arn:aws:ecs:us-east-1:587264368683:cluster/cookbook ||
|| arn:aws:ecs:us-east-1:587264368683:cluster/default ||
|+-------------------------------------------------------+|
To launch instances in that freshly created cluster instead of the default one, you need
to pass some 
user data
 during the instance creation step. Via Boto, this can be
achieved with the following script:
#!/usr/bin/env python

Download 6,31 Mb.

Do'stlaringiz bilan baham:
1   ...   202   203   204   205   206   207   208   209   ...   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