Docker Cookbook


Installing Docker on CentOS 6.5



Download 6,31 Mb.
Pdf ko'rish
bet15/260
Sana21.04.2022
Hajmi6,31 Mb.
#570749
1   ...   11   12   13   14   15   16   17   18   ...   260
Bog'liq
Docker Cookbook

1.2 Installing Docker on CentOS 6.5
Problem
You want to use Docker on CentOS 6.5.
Solution
On CentOS 6.5, getting Docker is achieved by installing the 
docker-io
package from
the Extra Packages for Enterprise Linux (EPEL) repository:
$ sudo yum -y update
$ sudo yum -y install epel-release
1.2 Installing Docker on CentOS 6.5 | 3


$ sudo yum -y install docker-io
$ sudo service docker start
$ sudo chkconfig docker on
On CentOS 6.5, it installs version 1.6.2:
# docker --version
Docker version 1.6.2, build 7c8fca2/1.6.2
Discussion
CentOS 6.
x
is no longer supported by Docker. Instead, CentOS 7 should be used if
you want the latest version of Docker (see 
Recipe 1.3
).
1.3 Installing Docker on CentOS 7
Problem
You want to use Docker on CentOS 7.
Solution
Install the Docker package by using the 
yum
package manager. CentOS uses 
systemd
,
so to manage the 
docker
service, you can use the 
systemctl
command:
$ sudo yum update
$ sudo yum -y install docker
$ sudo systemctl start docker
You can also use the official Docker installation script, which will use packages from
the Docker repository:
$ sudo yum update
$ sudo curl -sSL https://get.docker.com/ | sh
1.4 Setting Up a Local Docker Host by Using Vagrant
Problem
The operating system of your local machine is different from the operating system
you want to use Docker on. For example, you are running OS X and want to try
Docker on Ubuntu.
Solution
Use 
Vagrant
 to start a virtual machine (VM) locally and bootstrap the VM by using a
shell provisioner in the Vagrantfile.

Download 6,31 Mb.

Do'stlaringiz bilan baham:
1   ...   11   12   13   14   15   16   17   18   ...   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