Docker Cookbook


| Chapter 8: Docker in the Cloud



Download 6,31 Mb.
Pdf ko'rish
bet192/260
Sana21.04.2022
Hajmi6,31 Mb.
#570749
1   ...   188   189   190   191   192   193   194   195   ...   260
Bog'liq
Docker Cookbook

242 | Chapter 8: Docker in the Cloud


$ docker --tls -H tcp://goasguen.cloudapp.net:4243 ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
$ docker --tls -H tcp://goasguen.cloudapp.net:4243 images
REPOSITORY TAG IMAGE ID CREATED VIRTUAL SIZE
Using this CLI is not Docker-specific. This CLI gives you access to
the complete set of Azure APIs. However, using it to start instances
and install Docker in them significantly streamlines the provision‐
ing of Docker hosts.
See Also
• The Azure command-line 
interface
• Starting a 
CoreOS
instance on Azure
• Using Docker Machine with 
Azure
8.5 Starting a Docker Host on AWS Using Docker Machine
Problem
You understand how to use the AWS CLI to start an instance in the cloud and know
how to install Docker (see 
Recipe 8.2
). But you would like to use a streamlined pro‐
cess integrated with the Docker user experience.
Solution
Use 
Docker Machine
and its AWS EC2 driver.
Download the release candidate binaries for Docker Machine. Set some environment
variables so that Docker Machine knows your AWS API keys and your default VPC
in which to start the Docker host. Then use Docker Machine to start the instance.
Docker automatically sets up a TLS connection, and you can use this remote Docker
host started in AWS. On a 64-bit Linux machine, do the following:
$ sudo su
# curl -L https://github.com/docker/machine/releases/\
download/v0.4.0/docker-machine_linux-amd64 > \
/usr/local/bin/docker-machine
# chmod +x docker-machine
# exit
$ export AWS_ACCESS_KEY_ID=
$ export AWS_SECRET_ACCESS_KEY_ID=
$ export AWS_VPC_ID=
$ docker-machine create -d amazonec2 cookbook
INFO[0000] Launching instance...

Download 6,31 Mb.

Do'stlaringiz bilan baham:
1   ...   188   189   190   191   192   193   194   195   ...   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