Docker Cookbook


Starting a Docker Host in the Cloud by Using Docker Machine | 15



Download 6,31 Mb.
Pdf ko'rish
bet23/260
Sana21.04.2022
Hajmi6,31 Mb.
#570749
1   ...   19   20   21   22   23   24   25   26   ...   260
Bog'liq
Docker Cookbook

1.9 Starting a Docker Host in the Cloud by Using Docker Machine | 15


You will then be able to use the cloud instance as your Docker host and use it from a
local Docker client. See 
Chapter 8
for more recipes dedicated to using Docker in the
cloud.
Docker Machine
beta was 
announced
on February 26, 2015. Official
documentation
is now available on the Docker website. The source
code is available on 
GitHub
.
Let’s get started. 
Machine
currently supports VirtualBox, 
DigitalOcean

Amazon Web
Services

Azure

Google Compute Engine (GCE)
, and a few other providers. Several
drivers are under development or 
review
, so we should definitely expect much more
soon. This recipe uses DigitalOcean, so if you want to follow along step by step, you
will need an account on 
DigitalOcean
.
Once you have an account, do not create a droplet through the DigitalOcean UI.
Instead, generate an API access token for using Docker Machine. This token will
need to be both a 
read
and a 
write
token so that Machine can upload a public SSH key
(
Figure 1-7
). Set an environment variable 
DIGITALOCEAN_ACCESS_TOKEN
in your local
computer shell that defines the token you created.
Machine will upload an SSH key to your cloud account. Make sure
that your access tokens or API keys give you the privileges neces‐
sary to create a key.
Figure 1-7. DigitalOcean access token for Machine
You are almost set. You just need to download the 
docker-machine
binary. Go to the
documentation 
site
 and choose the correct binary for your local computer architec‐
ture. For example, on OS X:
$ curl -sOL https://github.com/docker/machine/releases/download/v0.3.0/ \
docker-machine_darwin-amd64

Download 6,31 Mb.

Do'stlaringiz bilan baham:
1   ...   19   20   21   22   23   24   25   26   ...   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