Docker Cookbook


| Chapter 7: The Docker Ecosystem: Tools



Download 6,31 Mb.
Pdf ko'rish
bet175/260
Sana21.04.2022
Hajmi6,31 Mb.
#570749
1   ...   171   172   173   174   175   176   177   178   ...   260
Bog'liq
Docker Cookbook

218 | Chapter 7: The Docker Ecosystem: Tools


This had a side effect in the example: you needed to specify to run the application as
root
for Nginx to be deployed successfully. This was achieved with the 
-r
option of
ltc create
.
Although this basic setup was done with Vagrant, Lattice can be deployed in various
cloud providers by using 
Terraform
.
See Also
• Using 
buildpacks
 with Lattice
7.11 Running Containers via Apache Mesos and Marathon
Problem
You are looking for a cluster scheduler to launch containers on a Docker host in your
data center. You might also already be running Apache Mesos to schedule long-
running jobs, cron jobs, or even Hadoop or parallel computing workloads, and would
like to use it to run containers.
Solution
Use Apache 
Mesos
 and the Docker containerizer. Mesos is a cluster resource allocator
that leverages multiple scheduling frameworks to maximize utilization of your data-
center resources. Mesos is used by large companies like eBay, Twitter, Netflix, Airbnb,
and 
more
.
The Mesos 
architecture
 is based on one or several master nodes, worker nodes (or
Mesos slaves), one or more scheduling frameworks that are deployed in Mesos, and a
service-discovery system that uses 
ZooKeeper
. In 
Recipe 7.2
, you already saw how to
use Docker Compose to start a testing Mesos infrastructure on a single node.
Marathon
 is one of the Mesos frameworks that can allow you to run tasks on a Mesos
cluster. Mesos supports Docker (i.e., Docker containerizer). This means that you can
launch Marathon tasks that are made of Docker containers.
Amazon ECS service (see 
Recipe 8.11
) can also use Mesos to sched‐
ule containers on AWS. Docker Swarm (see 
Recipe 7.3
) is also
scheduled to add support for Mesos-based scheduling.
This recipe uses Mesos 
Playa
, a Mesos sandbox, to show you how to run Docker con‐
tainers with Mesos.

Download 6,31 Mb.

Do'stlaringiz bilan baham:
1   ...   171   172   173   174   175   176   177   178   ...   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