SlideShare ist ein Scribd-Unternehmen logo
1 von 33
Downloaden Sie, um offline zu lesen
@SUDEEPPARAJULI2
SUDEEP.PARAJULI@HOTMAIL.COM
SLW-YIPL (2016-2-3)
YOUR VM IS YOUR PET , YOUR
CONTAINERS ARE CATTLE !!
SO..WHAT IS DOCKER
??
open source container based technology
container allows developers to package up an
application,all the dependency that is required in the box
docker is written in Go.
BENEFITS
Scalable
Isolation
Lightweight
Solves dependency problems
Uses less resources than a VM
COMPONENTS OF DOCKER
ARCHITECTURE IN OS X
CREATING THE FIRST CONTAINER
The most common way to create a container is by using
docker run command.
for example :
docker run --name test ubuntu:14.04 echo hello world
similarly,we can create a interactive container by
launching a bash shell inside it
docker run -it --name test1 ubuntu:14.04 /bin/bash
LISTING CONTAINER
we can list the container using docker ps command.
This will show only the running container.
for showing all the running and the stopped container,we
can use the -a attribute.
for example :
docker ps -a
STOPPING THE CONTAINER
we can stop the container using the following command.
docker stop <container>
This will stop the specified running container.
STARTING THE CONTAINER
To re-execute the process of a stopped container we can
use the following command.
docker start <container>
To attach to a running container we can use the following
command.
docker attach <container>
INSPECTING THE CONTAINER
To show very detailed information,in JSON format , about
container and its process execute
docker inspect <container>
Inspection is available in both stopped and running
container
READING A CONTAINER'S OUTPUT
Docker redirect's stdout and stderr of every container
both to current terminal and Docker's internal logs
docker logs <container>
RENAMING THE CONTAINER
To rename the container we can use the following
command.
docker rename <oldname> <newname>
REMOVING CONTAINERS
To remove the stopped container we can use the
following command.
docker rm <container>
use -f for force deletion.
To delete all the stopped containers at once.
docker rm $(docker ps -aq)
LISTING IMAGES
To list all the images execute.
docker images
Docker EXEC command
Run a command in running container
docker exec <container> <command>
REMOVING IMAGES
To remove the selected image we can use the following
command.
docker rmi <ImageName>
To delete all the images at once,use
docker rmi $(docker ps -aq)
LOGIN TO DOCKER REGISTRY
Register or log in to a Docker registry server
docker login
PULLING THE IMAGE
To Pull an image or a repository from a Docker registry
server use the following command.
docker pull <Name:Tag>
PUSHING THE IMAGE
To push an image or a repository to the registry use the
following command.
docker push <Name:Tag>
LOGOUT FROM DOCKER REGISTRY
To logout from docker registry server
docker logout
VOLUME
A volume is a path in a container file system that is
actually backed by a path in host file system thus
allowind data sharing between containers and between
host and the containers.
docker run -it -v <Hostpath>:<containerPath>
<BaseImage>
COMMIT
Create a new image from a container's changes
docker commit [options] <CONTAINER>
[REPOSITORY[:TAG]]
CREATING THE IMAGE
Docker images can be created in 2 different ways:
By editing the Dockerfile command in the hostfile
system and executing the docker build command
By working in the container and saving the changes by
using docker commit command
BUILDING THE IMAGE VIA DOCKERFILE
The steps are simplified and standard:
Create a directory having a file named Dockerfile.
Edit the Dockerfile,according to related syntax.
Run the following command to build image from the
Dockerfile
docker build -t <ImageName:Tag> <directory of
Dockerfile>
DOCKERFILE COMMANDS
FROM <Base-image>
MAINTAINER <author-name>
ADD <src> <destination>
EXPOSE <port>
WORKDIR </path/to/workdir>
DOCKER COMPOSE
Compose is a tool for defining and running multi-
container docker application.
With compose, we choose a compose file to configure our
application's service.
Then using a single command we create and start all the
services from our configuration.
ANY QUESTIONS
THANK YOU !!!!!

Weitere ähnliche Inhalte

Was ist angesagt?

Docker introduction &amp; benefits
Docker introduction &amp; benefitsDocker introduction &amp; benefits
Docker introduction &amp; benefitsAmit Manwade
 
Vert.X: Microservices Were Never So Easy (Clement Escoffier)
Vert.X: Microservices Were Never So Easy (Clement Escoffier)Vert.X: Microservices Were Never So Easy (Clement Escoffier)
Vert.X: Microservices Were Never So Easy (Clement Escoffier)Red Hat Developers
 
Run Jenkins as Managed Product on ECS - AWS Meetup
Run Jenkins as Managed Product on ECS - AWS MeetupRun Jenkins as Managed Product on ECS - AWS Meetup
Run Jenkins as Managed Product on ECS - AWS MeetupPhilipp Garbe
 
Evento Virtual - Continuidad de los desarrollos con Oracle Forms & Reports
Evento Virtual - Continuidad de los desarrollos con Oracle Forms & Reports Evento Virtual - Continuidad de los desarrollos con Oracle Forms & Reports
Evento Virtual - Continuidad de los desarrollos con Oracle Forms & Reports avanttic Consultoría Tecnológica
 
Oracle SQL Developer Tips and Tricks: Data Edition
Oracle SQL Developer Tips and Tricks: Data EditionOracle SQL Developer Tips and Tricks: Data Edition
Oracle SQL Developer Tips and Tricks: Data EditionJeff Smith
 
Integrating Oracle Data Integrator with Oracle GoldenGate 12c
Integrating Oracle Data Integrator with Oracle GoldenGate 12cIntegrating Oracle Data Integrator with Oracle GoldenGate 12c
Integrating Oracle Data Integrator with Oracle GoldenGate 12cEdelweiss Kammermann
 
Manage your ODI Development Cycle – ODTUG Webinar
Manage your ODI Development Cycle – ODTUG WebinarManage your ODI Development Cycle – ODTUG Webinar
Manage your ODI Development Cycle – ODTUG WebinarJérôme Françoisse
 
Portainer.io Intro | Into The Box 2018
Portainer.io Intro | Into The Box 2018Portainer.io Intro | Into The Box 2018
Portainer.io Intro | Into The Box 2018Dillon Slaughter
 
Docker 101 - from 0 to Docker in 30 minutes
Docker 101 - from 0 to Docker in 30 minutesDocker 101 - from 0 to Docker in 30 minutes
Docker 101 - from 0 to Docker in 30 minutesLuciano Fiandesio
 
Implantando e escalando kubernetes com rancher
Implantando e  escalando kubernetes com rancherImplantando e  escalando kubernetes com rancher
Implantando e escalando kubernetes com rancherClaudemir de Almeida Rosa
 
Docker and the Linux Kernel
Docker and the Linux KernelDocker and the Linux Kernel
Docker and the Linux KernelDocker, Inc.
 
Docker Swarm 0.2.0
Docker Swarm 0.2.0Docker Swarm 0.2.0
Docker Swarm 0.2.0Docker, Inc.
 

Was ist angesagt? (20)

Docker introduction &amp; benefits
Docker introduction &amp; benefitsDocker introduction &amp; benefits
Docker introduction &amp; benefits
 
Vert.X: Microservices Were Never So Easy (Clement Escoffier)
Vert.X: Microservices Were Never So Easy (Clement Escoffier)Vert.X: Microservices Were Never So Easy (Clement Escoffier)
Vert.X: Microservices Were Never So Easy (Clement Escoffier)
 
Run Jenkins as Managed Product on ECS - AWS Meetup
Run Jenkins as Managed Product on ECS - AWS MeetupRun Jenkins as Managed Product on ECS - AWS Meetup
Run Jenkins as Managed Product on ECS - AWS Meetup
 
Evento Virtual - Continuidad de los desarrollos con Oracle Forms & Reports
Evento Virtual - Continuidad de los desarrollos con Oracle Forms & Reports Evento Virtual - Continuidad de los desarrollos con Oracle Forms & Reports
Evento Virtual - Continuidad de los desarrollos con Oracle Forms & Reports
 
Docker in real life
Docker in real lifeDocker in real life
Docker in real life
 
Abc of docker
Abc of dockerAbc of docker
Abc of docker
 
Oracle SQL Developer Tips and Tricks: Data Edition
Oracle SQL Developer Tips and Tricks: Data EditionOracle SQL Developer Tips and Tricks: Data Edition
Oracle SQL Developer Tips and Tricks: Data Edition
 
Docker Tutorial.pdf
Docker Tutorial.pdfDocker Tutorial.pdf
Docker Tutorial.pdf
 
Integrating Oracle Data Integrator with Oracle GoldenGate 12c
Integrating Oracle Data Integrator with Oracle GoldenGate 12cIntegrating Oracle Data Integrator with Oracle GoldenGate 12c
Integrating Oracle Data Integrator with Oracle GoldenGate 12c
 
CI/CD with GitHub Actions
CI/CD with GitHub ActionsCI/CD with GitHub Actions
CI/CD with GitHub Actions
 
Manage your ODI Development Cycle – ODTUG Webinar
Manage your ODI Development Cycle – ODTUG WebinarManage your ODI Development Cycle – ODTUG Webinar
Manage your ODI Development Cycle – ODTUG Webinar
 
Introduction To Docker
Introduction To  DockerIntroduction To  Docker
Introduction To Docker
 
CI CD Basics
CI CD BasicsCI CD Basics
CI CD Basics
 
Portainer.io Intro | Into The Box 2018
Portainer.io Intro | Into The Box 2018Portainer.io Intro | Into The Box 2018
Portainer.io Intro | Into The Box 2018
 
Docker Basics
Docker BasicsDocker Basics
Docker Basics
 
Docker 101 - from 0 to Docker in 30 minutes
Docker 101 - from 0 to Docker in 30 minutesDocker 101 - from 0 to Docker in 30 minutes
Docker 101 - from 0 to Docker in 30 minutes
 
Implantando e escalando kubernetes com rancher
Implantando e  escalando kubernetes com rancherImplantando e  escalando kubernetes com rancher
Implantando e escalando kubernetes com rancher
 
Advanced Container Security
Advanced Container Security Advanced Container Security
Advanced Container Security
 
Docker and the Linux Kernel
Docker and the Linux KernelDocker and the Linux Kernel
Docker and the Linux Kernel
 
Docker Swarm 0.2.0
Docker Swarm 0.2.0Docker Swarm 0.2.0
Docker Swarm 0.2.0
 

Ähnlich wie Docker Presentation

Primi passi con Docker - ItalianCoders - 12-01-2021
Primi passi con Docker - ItalianCoders - 12-01-2021Primi passi con Docker - ItalianCoders - 12-01-2021
Primi passi con Docker - ItalianCoders - 12-01-2021Alessandro Mignogna
 
Academy PRO: Docker. Lecture 2
Academy PRO: Docker. Lecture 2Academy PRO: Docker. Lecture 2
Academy PRO: Docker. Lecture 2Binary Studio
 
Running the Oracle SOA Suite Environment in a Docker Container
Running the Oracle SOA Suite Environment in a Docker ContainerRunning the Oracle SOA Suite Environment in a Docker Container
Running the Oracle SOA Suite Environment in a Docker ContainerGuido Schmutz
 
Academy PRO: Docker. Part 2
Academy PRO: Docker. Part 2Academy PRO: Docker. Part 2
Academy PRO: Docker. Part 2Binary Studio
 
Docker Introductory workshop
Docker Introductory workshopDocker Introductory workshop
Docker Introductory workshopRuncy Oommen
 
Docker: A New Way to Turbocharging Your Apps Development
Docker: A New Way to Turbocharging Your Apps DevelopmentDocker: A New Way to Turbocharging Your Apps Development
Docker: A New Way to Turbocharging Your Apps Developmentmsyukor
 
Docker Essentials Workshop— Innovation Labs July 2020
Docker Essentials Workshop— Innovation Labs July 2020Docker Essentials Workshop— Innovation Labs July 2020
Docker Essentials Workshop— Innovation Labs July 2020CloudHero
 
Docker Compose user guide
Docker Compose user guideDocker Compose user guide
Docker Compose user guideVAIBHAV GUPTA
 
Continuous Delivery with Docker and Jenkins pipeline
Continuous Delivery with Docker and Jenkins pipelineContinuous Delivery with Docker and Jenkins pipeline
Continuous Delivery with Docker and Jenkins pipelineSlam Han
 
Managing Docker containers
Managing Docker containersManaging Docker containers
Managing Docker containerssiuyin
 
Lecture eight to be introduced in class.
Lecture eight to be introduced in class.Lecture eight to be introduced in class.
Lecture eight to be introduced in class.nigamsajal14
 
Docker Command Line, Using and Choosing containers
Docker Command Line, Using and Choosing containers Docker Command Line, Using and Choosing containers
Docker Command Line, Using and Choosing containers Will Hall
 
How to Dockerize Web Application using Docker Compose
How to Dockerize Web Application using Docker ComposeHow to Dockerize Web Application using Docker Compose
How to Dockerize Web Application using Docker ComposeEvoke Technologies
 
Deploying .net core apps to Docker - dotnetConf Local Bengaluru
Deploying .net core apps to Docker - dotnetConf Local BengaluruDeploying .net core apps to Docker - dotnetConf Local Bengaluru
Deploying .net core apps to Docker - dotnetConf Local BengaluruSwaminathan Vetri
 

Ähnlich wie Docker Presentation (20)

Primi passi con Docker - ItalianCoders - 12-01-2021
Primi passi con Docker - ItalianCoders - 12-01-2021Primi passi con Docker - ItalianCoders - 12-01-2021
Primi passi con Docker - ItalianCoders - 12-01-2021
 
Academy PRO: Docker. Lecture 2
Academy PRO: Docker. Lecture 2Academy PRO: Docker. Lecture 2
Academy PRO: Docker. Lecture 2
 
Docker @ Atlogys
Docker @ AtlogysDocker @ Atlogys
Docker @ Atlogys
 
Running the Oracle SOA Suite Environment in a Docker Container
Running the Oracle SOA Suite Environment in a Docker ContainerRunning the Oracle SOA Suite Environment in a Docker Container
Running the Oracle SOA Suite Environment in a Docker Container
 
Academy PRO: Docker. Part 2
Academy PRO: Docker. Part 2Academy PRO: Docker. Part 2
Academy PRO: Docker. Part 2
 
Docker Introductory workshop
Docker Introductory workshopDocker Introductory workshop
Docker Introductory workshop
 
Docker: A New Way to Turbocharging Your Apps Development
Docker: A New Way to Turbocharging Your Apps DevelopmentDocker: A New Way to Turbocharging Your Apps Development
Docker: A New Way to Turbocharging Your Apps Development
 
Docker
DockerDocker
Docker
 
Docker Essentials Workshop— Innovation Labs July 2020
Docker Essentials Workshop— Innovation Labs July 2020Docker Essentials Workshop— Innovation Labs July 2020
Docker Essentials Workshop— Innovation Labs July 2020
 
Docker.pdf
Docker.pdfDocker.pdf
Docker.pdf
 
Docker
DockerDocker
Docker
 
Docker Compose user guide
Docker Compose user guideDocker Compose user guide
Docker Compose user guide
 
Continuous Delivery with Docker and Jenkins pipeline
Continuous Delivery with Docker and Jenkins pipelineContinuous Delivery with Docker and Jenkins pipeline
Continuous Delivery with Docker and Jenkins pipeline
 
Managing Docker containers
Managing Docker containersManaging Docker containers
Managing Docker containers
 
Lecture eight to be introduced in class.
Lecture eight to be introduced in class.Lecture eight to be introduced in class.
Lecture eight to be introduced in class.
 
docker.pdf
docker.pdfdocker.pdf
docker.pdf
 
Docker Command Line, Using and Choosing containers
Docker Command Line, Using and Choosing containers Docker Command Line, Using and Choosing containers
Docker Command Line, Using and Choosing containers
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker Introduction
 
How to Dockerize Web Application using Docker Compose
How to Dockerize Web Application using Docker ComposeHow to Dockerize Web Application using Docker Compose
How to Dockerize Web Application using Docker Compose
 
Deploying .net core apps to Docker - dotnetConf Local Bengaluru
Deploying .net core apps to Docker - dotnetConf Local BengaluruDeploying .net core apps to Docker - dotnetConf Local Bengaluru
Deploying .net core apps to Docker - dotnetConf Local Bengaluru
 

Kürzlich hochgeladen

Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.Kamal Acharya
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptNANDHAKUMARA10
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...tanu pandey
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaOmar Fathy
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfRagavanV2
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapRishantSharmaFr
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfRagavanV2
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationBhangaleSonal
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXssuser89054b
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfKamal Acharya
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxJuliansyahHarahap1
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VDineshKumar4165
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756dollysharma2066
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Arindam Chakraborty, Ph.D., P.E. (CA, TX)
 

Kürzlich hochgeladen (20)

Employee leave management system project.
Employee leave management system project.Employee leave management system project.
Employee leave management system project.
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
Introduction to Serverless with AWS Lambda
Introduction to Serverless with AWS LambdaIntroduction to Serverless with AWS Lambda
Introduction to Serverless with AWS Lambda
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak HamilCara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
Cara Menggugurkan Sperma Yang Masuk Rahim Biyar Tidak Hamil
 
Unit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdfUnit 2- Effective stress & Permeability.pdf
Unit 2- Effective stress & Permeability.pdf
 
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
(INDIRA) Call Girl Meerut Call Now 8617697112 Meerut Escorts 24x7
 
DC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equationDC MACHINE-Motoring and generation, Armature circuit equation
DC MACHINE-Motoring and generation, Armature circuit equation
 
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar  ≼🔝 Delhi door step de...
Call Now ≽ 9953056974 ≼🔝 Call Girls In New Ashok Nagar ≼🔝 Delhi door step de...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
 
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
Work-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptxWork-Permit-Receiver-in-Saudi-Aramco.pptx
Work-Permit-Receiver-in-Saudi-Aramco.pptx
 
Thermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - VThermal Engineering-R & A / C - unit - V
Thermal Engineering-R & A / C - unit - V
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort ServiceCall Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
Call Girls in Netaji Nagar, Delhi 💯 Call Us 🔝9953056974 🔝 Escort Service
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 

Docker Presentation

  • 2.
  • 3. YOUR VM IS YOUR PET , YOUR CONTAINERS ARE CATTLE !!
  • 5. open source container based technology container allows developers to package up an application,all the dependency that is required in the box docker is written in Go.
  • 9. CREATING THE FIRST CONTAINER The most common way to create a container is by using docker run command. for example : docker run --name test ubuntu:14.04 echo hello world similarly,we can create a interactive container by launching a bash shell inside it docker run -it --name test1 ubuntu:14.04 /bin/bash
  • 10. LISTING CONTAINER we can list the container using docker ps command. This will show only the running container. for showing all the running and the stopped container,we can use the -a attribute. for example : docker ps -a
  • 11. STOPPING THE CONTAINER we can stop the container using the following command. docker stop <container> This will stop the specified running container.
  • 12. STARTING THE CONTAINER To re-execute the process of a stopped container we can use the following command. docker start <container> To attach to a running container we can use the following command. docker attach <container>
  • 13. INSPECTING THE CONTAINER To show very detailed information,in JSON format , about container and its process execute docker inspect <container> Inspection is available in both stopped and running container
  • 14. READING A CONTAINER'S OUTPUT Docker redirect's stdout and stderr of every container both to current terminal and Docker's internal logs docker logs <container>
  • 15. RENAMING THE CONTAINER To rename the container we can use the following command. docker rename <oldname> <newname>
  • 16. REMOVING CONTAINERS To remove the stopped container we can use the following command. docker rm <container> use -f for force deletion. To delete all the stopped containers at once. docker rm $(docker ps -aq)
  • 17. LISTING IMAGES To list all the images execute. docker images
  • 18. Docker EXEC command Run a command in running container docker exec <container> <command>
  • 19. REMOVING IMAGES To remove the selected image we can use the following command. docker rmi <ImageName> To delete all the images at once,use docker rmi $(docker ps -aq)
  • 20. LOGIN TO DOCKER REGISTRY Register or log in to a Docker registry server docker login
  • 21. PULLING THE IMAGE To Pull an image or a repository from a Docker registry server use the following command. docker pull <Name:Tag>
  • 22. PUSHING THE IMAGE To push an image or a repository to the registry use the following command. docker push <Name:Tag>
  • 23. LOGOUT FROM DOCKER REGISTRY To logout from docker registry server docker logout
  • 24. VOLUME A volume is a path in a container file system that is actually backed by a path in host file system thus allowind data sharing between containers and between host and the containers. docker run -it -v <Hostpath>:<containerPath> <BaseImage>
  • 25. COMMIT Create a new image from a container's changes docker commit [options] <CONTAINER> [REPOSITORY[:TAG]]
  • 26. CREATING THE IMAGE Docker images can be created in 2 different ways: By editing the Dockerfile command in the hostfile system and executing the docker build command By working in the container and saving the changes by using docker commit command
  • 27. BUILDING THE IMAGE VIA DOCKERFILE The steps are simplified and standard: Create a directory having a file named Dockerfile. Edit the Dockerfile,according to related syntax. Run the following command to build image from the Dockerfile docker build -t <ImageName:Tag> <directory of Dockerfile>
  • 28. DOCKERFILE COMMANDS FROM <Base-image> MAINTAINER <author-name> ADD <src> <destination> EXPOSE <port> WORKDIR </path/to/workdir>
  • 29.
  • 30. DOCKER COMPOSE Compose is a tool for defining and running multi- container docker application. With compose, we choose a compose file to configure our application's service. Then using a single command we create and start all the services from our configuration.
  • 32.