Docker Cookbook



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

Discussion
If you list the images available in a zone, you will see that some are interesting for
Docker-specific tasks:
$ gcloud compute images list
NAME PROJECT ALIAS ... STATUS
...
centos-7-v20150710 centos-cloud centos-7 READY
...
coreos-alpha-774-0-0-v20150814 coreos-cloud READY
...
container-vm-v20150806 google-containers container-vm READY
...
ubuntu-1404-trusty-v20150805 ubuntu-os-cloud ubuntu-14-04 READY
...
windows-server-2012-r2-dc-v20150813 windows-cloud windows-2012-r2 READY
...
Indeed, GCE provides 
CoreOS
 images, as well as 
container VMs
. CoreOS is discussed
in 
Chapter 6
. Container VMs are Debian 7–based instances that contain the Docker
daemon and the 
Kubernetes
kubelet. Kubernetes is discussed in 
Chapter 5
, and
Recipe 8.9
 provides more detail about the container VM.
If you want to start a CoreOS instance, you can use the image alias. You do not need
to specify any metadata to install Docker:
$ gcloud compute instances create cookbook --machine-type n1-standard-1 \
--image coreos
$ gcloud compute ssh cookbook
...
CoreOS (stable)
sebastiengoasguen@cookbook ~ $ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
240 | Chapter 8: Docker in the Cloud


Using the 
gcloud
CLI is not Docker-specific. This CLI gives you
access to the complete set of GCE APIs. However, using it to start
instances and install Docker in them significantly streamlines the
provisioning of Docker hosts.
8.4 Starting a Docker Host on Microsoft Azure
Problem
You want to start a VM instance on the Microsoft Azure cloud and use it as a Docker
host.
Solution
First you need an account on Azure (see 
Figure 8-1
). If you do not want to use the
Azure 
portal
, you need to install the Azure CLI. On a fresh Ubuntu 14.04 machine,
you would do this:
$ sudo apt-get update
$ sudo apt-get -y install nodejs-legacy
$ sudo apt-get -y install npm
$ sudo npm install -g azure-cli
$ azure -v
0.8.14
Then you need to set up your account for authentication from the CLI. Several meth‐
ods are 
available
. One is to download your account settings from the portal and
import them on the machine you are using the CLI from:
$ azure account download
$ azure account import ~/Downloads/Free\
Trial-2-5-2015-credentials.publishsettings
$ azure account list
You are now ready to use the Azure CLI to start VM instances. Pick a location and an
image:
$ azure vm image list | grep Ubuntu
$ azure vm location list
info: Executing command vm location list
+ Getting locations
data: Name
data: ----------------
data: West Europe
data: North Europe
data: East US 2
data: Central US
data: South Central US
data: West US

Download 6,31 Mb.

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