Docker Cookbook


See Also • The project Atomic  documentation 6.6 Using Project Atomic to Run Docker Containers | 183



Download 6,31 Mb.
Pdf ko'rish
bet150/260
Sana21.04.2022
Hajmi6,31 Mb.
#570749
1   ...   146   147   148   149   150   151   152   153   ...   260
Bog'liq
Docker Cookbook

See Also
• The project Atomic 
documentation
6.6 Using Project Atomic to Run Docker Containers | 183


6.7 Starting an Atomic Instance on AWS to Use Docker
Problem
You do not want to use Vagrant to try Atomic (see 
Recipe 6.6
) and do not want to use
an ISO image either.
Solution
Start an Atomic instance on Amazon EC2. Atomic AMIs are available on AWS EC2.
You can open your AWS management console and go through the instance launch
wizard. Search for a community AMI named 
atomic
; several AMIs are available, most
based on the Fedora 22 release. After having created an SSH key pair, you can launch
the instance, and once it is running, you can connect to it. As an example, here you
connect to an Atomic instance with IP address 52.18.234.151. You will have access to
Docker right away:
$ ssh -i ~/.ssh/ fedora@52.18.234.151
[fedora@ip-172-31-46-186 ~]$ sudo docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
[fedora@ip-172-31-46-186 ~]$ sudo docker version | version
Client version: 1.5.0-dev
...
Server version: 1.5.0-dev
Such an instance comes with the 
atomic
command, which you can use to upgrade the
host. Check the instance status and launch an upgrade. It will download the new
Atomic version. You will then need to reboot to get on the new version:
[fedora@ip-172-31-46-186 ~]$ atomic host status
TIMESTAMP (UTC) VERSION ID OSNAME REFSPEC
* 2015-05-12 18:53:06 22.66 cd414cba85 fedora-atomic fedora-atomic:...
[fedora@ip-172-31-46-186 ~]$ atomic host upgrade
Updating from: fedora-atomic:fedora-atomic/f22/x86_64/docker-host
[fedora@ip-172-31-46-186 ~]$ sudo systemctl reboot
After reboot, you will see that your host has automatically upgraded to a new version
of Docker, which ships in the latest version of Atomic:
[fedora@ip-172-31-46-186 ~]$ sudo docker version
Client version: 1.7.1.fc22
...
Server version: 1.7.1.fc22
...
Discussion
To start an instance, you can use the AWS command-line tools or use the script pro‐
vided in this recipe. The script has the advantage of being based on Apache Libcloud

Download 6,31 Mb.

Do'stlaringiz bilan baham:
1   ...   146   147   148   149   150   151   152   153   ...   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