Docker Cookbook


Starting a Docker Host on AWS Using Docker Machine | 243



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

8.5 Starting a Docker Host on AWS Using Docker Machine | 243


INFO[0023] Waiting for SSH ...
...
INFO[0129] "cookbook" has been created and is now the active machine
INFO[0129] To connect: docker $(docker-machine config cookbook) ps
Once the machine has been created, you can use your local Docker client to commu‐
nicate with it. Do not forget to kill the machine after you are finished:
$ eval "$(docker-machine env cookbook)" ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
$ docker-machine ls
NAME ACTIVE DRIVER STATE URL
cookbook * amazonec2 Running tcp://:2376
$ docker-machine kill cookbook
You can manage your machines directly from the Docker Machine CLI:
$ docker-machine -h
...
COMMANDS:
active Get or set the active machine
create Create a machine
config Print the connection config for machine
inspect Inspect information about a machine
ip Get the IP address of a machine
kill Kill a machine
ls List machines
restart Restart a machine
rm Remove a machine
env Display the commands to set up the environment for
the Docker client
ssh Log into or run a command on a machine with SSH
start Start a machine
stop Stop a machine
upgrade Upgrade a machine to the latest version of Docker
url Get the URL of a machine
help, h Shows a list of commands or help for one command
Discussion
Docker Machine contains drivers for several cloud 
providers
. We
already showcased the Digital Ocean driver (see 
Recipe 1.9
), and
you can see how to use it for Azure in 
Recipe 8.6
.
The AWS driver takes several command-line options to set your keys, VPC, key pair,
image, and instance type. You can set them up as environment variables as you did
previously or directly on the 
machine
command line:

Download 6,31 Mb.

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