Introduction to Docker



Download 1,95 Mb.
bet2/3
Sana18.07.2022
Hajmi1,95 Mb.
#822127
1   2   3
Bog'liq
Saidov Og\'abek - Docker

Developers IT Operations
BUILD
Development Environments
SHIP
Create & Store Images
RUN
Deploy, Manage, Scale

Some Docker vocabulary


Docker Image
The basis of a Docker container. Represents a full application
Docker Container
The standard unit in which the application service resides and executes
Docker Engine
Creates, ships and runs Docker containers deployable on a physical or virtual, host locally, in a datacenter or cloud service provider
Registry Service (Docker Hub(Public) or Docker Trusted Registry(Private))
Cloud or server based storage and distribution service for your images

Basic Docker Commands


$ docker image pull node:latest
$ docker image ls
$ docker container run –d –p 5000:5000 –-name node node:latest
$ docker container ps
$ docker container stop node(or )
$ docker container rm node (or )
$ docker image rmi (or )
$ docker build –t node:2.0 .
$ docker image push node:2.0
$ docker --help

Dockerfile – Linux Example


14
  • Instructions on how to build a Docker image
  • Looks very similar to “native” commands
  • Important to optimize your Dockerfile

Section 2:
Anatomy of a Docker Container Docker Volumes
Volume Use Cases

Let’s Go Back to Our Dockerfile

Each Dockerfile Command Creates a Layer


Kernel
FROM
RUN
WORKDIR
COPY
EXPOSE

Docker Image Pull: Pulls Layers

Docker Volumes

  • Volumes mount a directory on the host into the container at a specific location
  • Can be used to share (and persist) data between containers
    • Directory persists after the container is deleted
      • Unless you explicitly delete it
  • Can be created in a Dockerfile or via CLI

Download 1,95 Mb.

Do'stlaringiz bilan baham:
1   2   3




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