Docker Cookbook


Installing Docker on Ubuntu 14.04



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

1.1 Installing Docker on Ubuntu 14.04
Problem
You want to use Docker on Ubuntu 14.04.
Solution
On Ubuntu 14.04, installing Docker is achieved in three lines of bash commands at
most. The recommended installation by the Docker project uses a bash script that is
available on the Internet. Be careful, because a preexisting 
docker
package is included
in the Ubuntu repositories that is not related to 
Docker
. Perform the recommended
installation:
$ sudo apt-get update
$ sudo apt-get install -y wget
$ sudo wget -qO- https://get.docker.com/ | sh
You can test that the installation worked fine by checking the version of Docker:
2 | Chapter 1: Getting Started with Docker


$ sudo docker --version
Docker version 1.7.1, build 786b29d
You can stop, start, and restart the service. For example, to restart it:
$ sudo service docker restart
If you want to use 
docker
from a nonroot user, add the user
account to the 
docker
group:
$ sudo gpasswd -a docker
Exit the current shell and log in again or start a new shell for the
change to take effect.
Discussion
You can look at the installation script available at 
https://get.docker.com
to perform the
installation step by step and customize it to your liking. On Ubuntu 14.04 (
trusty
release), at a minimum you would do the following:
$ sudo apt-get update
$ sudo apt-get install -y linux-image-extra-$(uname -r) linux-image-extra-virtual
$ sudo apt-key adv --keyserver hkp://p80.pool.sks-keyservers.net:80
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D
$ sudo su
# echo deb https://apt.dockerproject.org/repo ubuntu-trusty main > \
/etc/apt/sources.list.d/docker.list
# apt-get -y install docker-engine
See Also
• For installation of Docker on other operating systems, see the official installation
documentation
.

Download 6,31 Mb.

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