Docker Cookbook


| Chapter 7: The Docker Ecosystem: Tools



Download 6,31 Mb.
Pdf ko'rish
bet184/260
Sana21.04.2022
Hajmi6,31 Mb.
#570749
1   ...   180   181   182   183   184   185   186   187   ...   260
Bog'liq
Docker Cookbook

228 | Chapter 7: The Docker Ecosystem: Tools


Figure 7-9. Consul UI
With Docker service registration under control, you can start thinking about dynami‐
cally reconfiguring other services (see 
Recipe 10.3
).
See Also
• GitHub repository of 
registrator

Original blog post from Jeff Lindsay
7.13 Discovering Docker Services with Registrator | 229



CHAPTER 8
Docker in the Cloud
8.0 Introduction
With the advent of public and private clouds, enterprises have moved an increasing
number of workloads to the clouds. A significant portion of IT infrastructure is now
provisioned on public clouds like 
Amazon Web Services
(AWS), 
Google Compute
Engine
(GCE), and 
Microsoft Azure
(Azure). In addition, companies have deployed
private clouds to provide a self-service infrastructure for IT needs.
Although Docker, like any software, runs on bare-metal servers, running a Docker
host in a public or private cloud (i.e., on virtual machines) and orchestrating contain‐
ers started on those hosts is going to be a critical part of new IT infrastructure needs.
Figure 8-1
 depicts a simple setup where you are accessing a remote Docker host in
the cloud using your local Docker client.
Figure 8-1. Docker in the cloud
This chapter covers the top three public clouds (i.e., AWS, GCE, and Azure) and
some of the Docker services they offer. If you have never used a public cloud, now is
the time and 
Recipe 8.1
 will cover some basics to get you started. Then you will see
how to use the CLI of these clouds to start instances and install Docker in 
Recipe 8.2
,
231


Recipe 8.3
, and 
Recipe 8.4
. To avoid installing the CLI we show you a trick in 
Recipe
8.7
, where all the cloud clients can actually run in a container.
While Docker Machine (see 
Recipe 1.9
) will ultimately remove the need to use these
provider CLIs, learning how to start instances with them will help you use the other
Docker-related cloud services. That being said, in 
Recipe 8.5
 we show you how to
start a Docker host in AWS EC2 using 
docker-machine
and we do the same with
Azure in 
Recipe 8.6
.
We then present some Docker-related services on GCE and EC2. First on GCE, we
look at the Google container registry, a hosted Docker registry that you can use with
your Google account. It works like the Docker Hub but has the advantage of leverag‐
ing Google’s authorization system to give access to your images to team members and
the public if you want to. Google container virtual machines (VM) are then intro‐
duced in 
Recipe 8.9
; they represent a nice short introduction to some of the concepts
of Kubernetes while dealing with a single host. The hosted Kubernetes service, Goo‐
gle Container Engine (i.e., GKE), is presented in 
Recipe 8.10
. GKE is the fastest way
to experiment with Kubernetes if you already have a Google cloud account.
To finish this chapter, we look at two services on AWS that allow you to run your
containers. First we look at the 
Amazon Container Service
 (i.e., ECS) in 
Recipe 8.11
.
We show you how to create an ECS cluster in 
Recipe 8.12
and how to run containers
by defining tasks in 
Recipe 8.13
. We wrap up with a walkthrough of using AWS Bean‐
stalk to deploy your containers in 
Recipe 8.14
.
In this chapter we show you how to use public clouds to create Docker hosts, and we
also introduce some container-based services that have reached general availability
recently: the AWS container service and the Google container engine. Both services
mark a new trend in public cloud providers who need to embrace Docker as a new
way to package, deploy and manage distributed applications. We can expect more
services like these to come out and extend the capabilities of Docker and containers
in general.
AWS, GCE, and Azure are the recognized top-three public cloud
providers in the world. However, Docker can be installed on any
public cloud where you can run a Linux distribution supported by
Docker (e.g., Ubuntu, CentOS, CoreOS).

Download 6,31 Mb.

Do'stlaringiz bilan baham:
1   ...   180   181   182   183   184   185   186   187   ...   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