Docker Cookbook


| Chapter 8: Docker in the Cloud



Download 6,31 Mb.
Pdf ko'rish
bet196/260
Sana21.04.2022
Hajmi6,31 Mb.
#570749
1   ...   192   193   194   195   196   197   198   199   ...   260
Bog'liq
Docker Cookbook

248 | Chapter 8: Docker in the Cloud


us-central1-b us-central1 UP
us-central1-a us-central1 UP
Discussion
A similar process can be used for AWS. If you search for an 
awscli
image on Docker
Hub, you will see several options. The 
Dockerfile
 provided shows you how the image
was constructed and the CLI installed within the image. If you take the 
nathanlec‐
laire/awscli
image, you notice that no volumes are mounted to keep the credentials
from container to container. Hence you need to pass the AWS access keys as environ‐
ment variables when you launch a container:
$ docker pull nathanleclaire/awscli
$ docker run --rm \
-ti \
-e AWS_ACCESS_KEY_ID="AKIAIUCASDLGFIGDFGS" \
-e AWS_SECRET_ACCESS_KEY="HwQdNnAIqrwy9797arghqQERfrgot" \
nathanleclaire/awscli \
--region eu-west-1 \
--output=table \
ec2 describe-key-pairs
-------------------------------------------------------------------------------
| DescribeKeyPairs |
+-----------------------------------------------------------------------------+
|| KeyPairs ||
|+---------------------------------------------------------------+-----------+|
|| KeyFingerprint | KeyName ||
|+---------------------------------------------------------------+-----------+|
|| 69:aa:64:4b:72:50:ee:15:9a:da:71:4e:44:cd:db:c0:a1:72:38:36 | cookbook ||
|+---------------------------------------------------------------+-----------+|
Also notice that 
aws
was set up as an entry point in this image. Therefore, there you
don’t need to specify it and should only pass arguments to it.
You can build your own AWS CLI image that allows you to handle
API keys more easily.
See Also
• Official 
documentation
on the containerized Google SDK

Download 6,31 Mb.

Do'stlaringiz bilan baham:
1   ...   192   193   194   195   196   197   198   199   ...   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