Docker Cookbook


| Chapter 7: The Docker Ecosystem: Tools



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

214 | Chapter 7: The Docker Ecosystem: Tools


Figure 7-5. Starting a container via the Rancher UI
At this stage, you have a working Rancher test bed. You can explore the dashboard.
The Containers tab lists all your running containers. You can open a shell into a con‐
tainer, and start/stop it. The Volumes tab lists the volumes currently being used; vol‐
ume manipulation through the dashboard is limited at this time. Finally, you can
define an existing private registry, or define load-balancers.
7.9 Using Rancher to Manage Containers on a Cluster of Docker Hosts | 215


Figure 7-6. Rancher dashboard with running container
Discussion
So far, you’ve done everything by using the dashboard. Rancher also exposes a REST
API to manage all its resources. To use the API, you need to generate a set of API
access and secret keys. This is done by clicking the user icon at the top right of the
dashboard and selecting the API & Keys option. The API is not documented on the
GitHub page, but the dashboard offers a nice API explorer.
You can manage a running container through the dashboard. By clicking the con‐
tainer, you will see an option to View in API. This redirects you to the API explorer.
This explorer features the JSON object describing the container as well as a set of
actions that can be performed (green boxes in the UI). Selecting one of the actions
opens a new window that will show you the API request that you can make. This is a
perfect way to learn the API and possibly write your own client. 
Figure 7-7
 is a snap‐
shot of a request to stop a container.
216 | Chapter 7: The Docker Ecosystem: Tools


Figure 7-7. Rancher API request example

Download 6,31 Mb.

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