SlideShare une entreprise Scribd logo
1  sur  21
Télécharger pour lire hors ligne
Walid Ashraf
Researcher , Software Developer, Instructor
about.me/WalidAshraf
DOCKER INSTALLATION
AND BASICS
Docker - Walid Ashraf
Table of Contents
Install Docker on Linux (Ubuntu)
Using Docker
Installing Docker On windows
Official Documentation for Ubuntu
https://docs.docker.com/engine/installation/linux/ubuntulinux/
INSTALL DOCKER FOR
UBUNTU
Docker - Walid Ashraf
Prerequisites For Installation
Docker Requires 64-bit OS
Docker requires Linux kernel 3.10.0+
An UpdatedVersion of you Package Manager (APT) Lists (Docker List)
AUFS Support
• Installation of Kernel Extra Image (Linux-image-extra-* kernel packages) for Ubuntu
Trusty 14.04, and Xenial 16.04
Docker - Walid Ashraf
Installation
sudo apt-get install docker-engine
Start The Docker Service
• sudo service docker start
Test your first container:
sudo docker run hello-world
Docker - Walid Ashraf
Demo Time
https://docs.docker.com/engine/reference/c
ommandline/
USING DOCKER BEYOND THE
BASICS
Docker - Walid Ashraf
info, images, ps , pull
docker info
• States current client and daemon versions
docker images
• Lists Current Images at the machines
docker search
• Searches images on default repo
docker pull
• Downloads a image from the default repo.
docker ps
• List all containers at the machine
• -a : List all containers
Docker - Walid Ashraf
Run Command
docker run [OPTIONS] IMAGE [COMMAND] [ARG...]
Set Container Name
• -name value
• Ex: docker run -name test HelloWorld
Start in interactive mode
• -i interactive mode
• -t Open tty
• Ex: docker run -it Ubuntu
Set Working dir
• Ex: docker run -w /home/ -i -t ubuntu pwd
Start in detached Mode
• Ex: docker run -d seqvence/static-site
Docker - Walid Ashraf
Run Command (Ports)
Port Mapping
• -p hostPort:ContainerPort
• -p hostIp:hostPort:ContainerPort
• -P all ports
• docker run -P seqvence/static-site
• docker run -d -p 80:80 --name webserver nginx
List Container Port
• docker port CONTAINER
• Ex: docker port webserver
Docker - Walid Ashraf
Run Command (Volumes)
Docker Volumes allow a container to mount a directory to be shared between the
host and container(s)
-v hostdirectory:containerdir
containerdi:ro allow that the mounted container to be read only
Ex: docker run -v /home/sharedfoo:/foo -it ubuntu bash
Ex: docker run -v /home/sharedfoo:/foo:ro -it ubuntu bash
Docker - Walid Ashraf
Other Import Commands
create
• Creates a docker containers with all options but doesn’t start it
start, pause, stop, rm
stats
• Gives a live preview of container utilization
exec
• Executes a command inside a container
• docker exec [OPTIONS] CONTAINER COMMAND [ARG...]
• Ex: docker exec -d ubuntu_bash touch /tmp/execWorks
cp
• Copies data from container to host and vice versa
• Ex: docker cp container:/file1 /home/
• Ex: docker cp /home/file2 container:/
Using Docker Tool Box
Docker For windows
WINDOWS INSTALLATION
https://www.docker.com/products/docker-
toolbox
DOCKER TOOL BOX
Docker - Walid Ashraf
Using Docker toolbox
Toolbox includes these Docker tools:
• Docker Machine for running docker-machine commands
• Docker Engine for running the docker commands
• Docker Compose for running the docker-compose commands
• Kitematic, the Docker GUI
• a shell preconfigured for a Docker command-line environment
• OracleVirtualBox
Prerequisites
• Docker Tool Box Requires 64 BitWindows 7 or More
• Docker Requires H/WVirtualization ( AVirtual Box Requirement)
InstallTools
Docker - Walid Ashraf
Using Terminal
Using Docker quick start terminal to test any docker commands
Docker - Walid Ashraf
Using Kitematic
Kitematic is a GUI Docker Controller
You can search for any public images , create and Manager Containers.
Kitematic also automates advanced features such as managing ports and configuring volumes.
You can use Kitematic to change environment variables, stream logs, and single click terminal into your
Docker container all from the GUI.
Checkout
• https://docs.docker.com/kitematic/userguide/
Docker - Walid Ashraf
Demo Time
https://docs.docker.com/docker-for-
windows/
DOCKER FOR WINDOWS
Docker - Walid Ashraf
Installation
Prerequisites
Windows runs on 64bit Windows 10 Pro, Enterprise and Education (1511 November update, Build 10586 or
later).
The Hyper-V package must be enabled for Docker for Windows to work
Installation
Open Power shell and Use Docker command line
Docker - Walid Ashraf21

Contenu connexe

Tendances

Docker Compose by Aanand Prasad
Docker Compose by Aanand Prasad Docker Compose by Aanand Prasad
Docker Compose by Aanand Prasad
Docker, Inc.
 
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
Simplilearn
 
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
Simplilearn
 
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Simplilearn
 

Tendances (20)

What is Docker
What is DockerWhat is Docker
What is Docker
 
Docker intro
Docker introDocker intro
Docker intro
 
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
What is Docker | Docker Tutorial for Beginners | Docker Container | DevOps To...
 
Introduction to Docker Compose
Introduction to Docker ComposeIntroduction to Docker Compose
Introduction to Docker Compose
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker Introduction
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker Introduction
 
Docker Compose by Aanand Prasad
Docker Compose by Aanand Prasad Docker Compose by Aanand Prasad
Docker Compose by Aanand Prasad
 
Docker introduction for the beginners
Docker introduction for the beginnersDocker introduction for the beginners
Docker introduction for the beginners
 
Intro to containerization
Intro to containerizationIntro to containerization
Intro to containerization
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker Introduction
 
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
 
Dockerfile
Dockerfile Dockerfile
Dockerfile
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
 
Docker Swarm 0.2.0
Docker Swarm 0.2.0Docker Swarm 0.2.0
Docker Swarm 0.2.0
 
Containerization and Docker
Containerization and DockerContainerization and Docker
Containerization and Docker
 
Introduction to container based virtualization with docker
Introduction to container based virtualization with dockerIntroduction to container based virtualization with docker
Introduction to container based virtualization with docker
 
Containers technologies
Containers technologiesContainers technologies
Containers technologies
 
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
What Is A Docker Container? | Docker Container Tutorial For Beginners| Docker...
 
Docker Introduction
Docker IntroductionDocker Introduction
Docker Introduction
 
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
Docker Tutorial For Beginners | What Is Docker And How It Works? | Docker Tut...
 

En vedette

Apache Ant
Apache AntApache Ant
Apache Ant
Ali Bahu
 
Infrastructure testing with Jenkins, Puppet and Vagrant - Agile Testing Days ...
Infrastructure testing with Jenkins, Puppet and Vagrant - Agile Testing Days ...Infrastructure testing with Jenkins, Puppet and Vagrant - Agile Testing Days ...
Infrastructure testing with Jenkins, Puppet and Vagrant - Agile Testing Days ...
Carlos Sanchez
 
Blockchain + Streaming Analytics with Ethereum and TIBCO StreamBase
Blockchain + Streaming Analytics with Ethereum and TIBCO StreamBase Blockchain + Streaming Analytics with Ethereum and TIBCO StreamBase
Blockchain + Streaming Analytics with Ethereum and TIBCO StreamBase
Kai Wähner
 
Flogo - A Golang-powered Open Source IoT Integration Framework (Gophercon)
Flogo - A Golang-powered Open Source IoT Integration Framework (Gophercon)Flogo - A Golang-powered Open Source IoT Integration Framework (Gophercon)
Flogo - A Golang-powered Open Source IoT Integration Framework (Gophercon)
Kai Wähner
 

En vedette (20)

Docker Basics
Docker BasicsDocker Basics
Docker Basics
 
Java Builds with Maven and Ant
Java Builds with Maven and AntJava Builds with Maven and Ant
Java Builds with Maven and Ant
 
Docker by Example - Basics
Docker by Example - Basics Docker by Example - Basics
Docker by Example - Basics
 
Docker: The basics - Including a demo with an awesome full-stack JS app
Docker: The basics - Including a demo with an awesome full-stack JS appDocker: The basics - Including a demo with an awesome full-stack JS app
Docker: The basics - Including a demo with an awesome full-stack JS app
 
Introduction to Apache Ant
Introduction to Apache AntIntroduction to Apache Ant
Introduction to Apache Ant
 
Apache Ant
Apache AntApache Ant
Apache Ant
 
Apache Ant
Apache AntApache Ant
Apache Ant
 
ANT
ANTANT
ANT
 
Talk on PHP Day Uruguay about Docker
Talk on PHP Day Uruguay about DockerTalk on PHP Day Uruguay about Docker
Talk on PHP Day Uruguay about Docker
 
Apache ANT vs Apache Maven
Apache ANT vs Apache MavenApache ANT vs Apache Maven
Apache ANT vs Apache Maven
 
Apache Ant
Apache AntApache Ant
Apache Ant
 
Manen Ant SVN
Manen Ant SVNManen Ant SVN
Manen Ant SVN
 
Apache ant
Apache antApache ant
Apache ant
 
Docker from basics to orchestration (PHPConfBr2015)
Docker from basics to orchestration (PHPConfBr2015)Docker from basics to orchestration (PHPConfBr2015)
Docker from basics to orchestration (PHPConfBr2015)
 
Infrastructure testing with Jenkins, Puppet and Vagrant - Agile Testing Days ...
Infrastructure testing with Jenkins, Puppet and Vagrant - Agile Testing Days ...Infrastructure testing with Jenkins, Puppet and Vagrant - Agile Testing Days ...
Infrastructure testing with Jenkins, Puppet and Vagrant - Agile Testing Days ...
 
Chef Cookbook Testing and Continuous Integration
Chef Cookbook Testing and Continuous IntegrationChef Cookbook Testing and Continuous Integration
Chef Cookbook Testing and Continuous Integration
 
Trends at JavaOne 2016: Microservices, Docker and Cloud-Native Middleware
Trends at JavaOne 2016: Microservices, Docker and Cloud-Native MiddlewareTrends at JavaOne 2016: Microservices, Docker and Cloud-Native Middleware
Trends at JavaOne 2016: Microservices, Docker and Cloud-Native Middleware
 
Red Hat Certified engineer course
  Red Hat Certified engineer course   Red Hat Certified engineer course
Red Hat Certified engineer course
 
Blockchain + Streaming Analytics with Ethereum and TIBCO StreamBase
Blockchain + Streaming Analytics with Ethereum and TIBCO StreamBase Blockchain + Streaming Analytics with Ethereum and TIBCO StreamBase
Blockchain + Streaming Analytics with Ethereum and TIBCO StreamBase
 
Flogo - A Golang-powered Open Source IoT Integration Framework (Gophercon)
Flogo - A Golang-powered Open Source IoT Integration Framework (Gophercon)Flogo - A Golang-powered Open Source IoT Integration Framework (Gophercon)
Flogo - A Golang-powered Open Source IoT Integration Framework (Gophercon)
 

Similaire à docker installation and basics

Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
Jim Yeh
 
Victor Vieux at Docker Paris Meetup #1
Victor Vieux at Docker Paris Meetup #1Victor Vieux at Docker Paris Meetup #1
Victor Vieux at Docker Paris Meetup #1
Docker, Inc.
 

Similaire à docker installation and basics (20)

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
 
Docker fundamentals
Docker fundamentalsDocker fundamentals
Docker fundamentals
 
Docker
DockerDocker
Docker
 
Introduction to Docker
Introduction to DockerIntroduction to Docker
Introduction to Docker
 
Getting Started with Docker
Getting Started with DockerGetting Started with Docker
Getting Started with Docker
 
Docker introduction
Docker introductionDocker introduction
Docker introduction
 
Docker use dockerfile
Docker use dockerfileDocker use dockerfile
Docker use dockerfile
 
moscmy2016: Extending Docker
moscmy2016: Extending Dockermoscmy2016: Extending Docker
moscmy2016: Extending Docker
 
Rally_Docker_deployment_JumpVM
Rally_Docker_deployment_JumpVMRally_Docker_deployment_JumpVM
Rally_Docker_deployment_JumpVM
 
Introduction to docker
Introduction to dockerIntroduction to docker
Introduction to docker
 
dockerizing web application
dockerizing web applicationdockerizing web application
dockerizing web application
 
How to _docker
How to _dockerHow to _docker
How to _docker
 
Docker, LinuX Container
Docker, LinuX ContainerDocker, LinuX Container
Docker, LinuX Container
 
Detailed Introduction To Docker
Detailed Introduction To DockerDetailed Introduction To Docker
Detailed Introduction To Docker
 
Docker and containers - Presentation Slides by Priyadarshini Anand
Docker and containers - Presentation Slides by Priyadarshini AnandDocker and containers - Presentation Slides by Priyadarshini Anand
Docker and containers - Presentation Slides by Priyadarshini Anand
 
Docker presentation | Paris Docker Meetup
Docker presentation | Paris Docker MeetupDocker presentation | Paris Docker Meetup
Docker presentation | Paris Docker Meetup
 
Victor Vieux at Docker Paris Meetup #1
Victor Vieux at Docker Paris Meetup #1Victor Vieux at Docker Paris Meetup #1
Victor Vieux at Docker Paris Meetup #1
 
Gebruik dezelfde Docker container voor Java applicaties tijdens ontwikkelen e...
Gebruik dezelfde Docker container voor Java applicaties tijdens ontwikkelen e...Gebruik dezelfde Docker container voor Java applicaties tijdens ontwikkelen e...
Gebruik dezelfde Docker container voor Java applicaties tijdens ontwikkelen e...
 
時代在變 Docker 要會:台北 Docker 一日入門篇
時代在變 Docker 要會:台北 Docker 一日入門篇時代在變 Docker 要會:台北 Docker 一日入門篇
時代在變 Docker 要會:台北 Docker 一日入門篇
 
Talk about Docker
Talk about DockerTalk about Docker
Talk about Docker
 

Dernier

CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
giselly40
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
vu2urc
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
Earley Information Science
 

Dernier (20)

Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
Apidays Singapore 2024 - Building Digital Trust in a Digital Economy by Veron...
 
GenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day PresentationGenCyber Cyber Security Day Presentation
GenCyber Cyber Security Day Presentation
 
Data Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt RobisonData Cloud, More than a CDP by Matt Robison
Data Cloud, More than a CDP by Matt Robison
 
How to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected WorkerHow to Troubleshoot Apps for the Modern Connected Worker
How to Troubleshoot Apps for the Modern Connected Worker
 
How to convert PDF to text with Nanonets
How to convert PDF to text with NanonetsHow to convert PDF to text with Nanonets
How to convert PDF to text with Nanonets
 
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
08448380779 Call Girls In Diplomatic Enclave Women Seeking Men
 
Handwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed textsHandwritten Text Recognition for manuscripts and early printed texts
Handwritten Text Recognition for manuscripts and early printed texts
 
presentation ICT roal in 21st century education
presentation ICT roal in 21st century educationpresentation ICT roal in 21st century education
presentation ICT roal in 21st century education
 
Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024Partners Life - Insurer Innovation Award 2024
Partners Life - Insurer Innovation Award 2024
 
CNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of ServiceCNv6 Instructor Chapter 6 Quality of Service
CNv6 Instructor Chapter 6 Quality of Service
 
2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...2024: Domino Containers - The Next Step. News from the Domino Container commu...
2024: Domino Containers - The Next Step. News from the Domino Container commu...
 
Histor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slideHistor y of HAM Radio presentation slide
Histor y of HAM Radio presentation slide
 
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
Raspberry Pi 5: Challenges and Solutions in Bringing up an OpenGL/Vulkan Driv...
 
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptxEIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
EIS-Webinar-Prompt-Knowledge-Eng-2024-04-08.pptx
 
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
Mastering MySQL Database Architecture: Deep Dive into MySQL Shell and MySQL R...
 
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
Strategies for Unlocking Knowledge Management in Microsoft 365 in the Copilot...
 
🐬 The future of MySQL is Postgres 🐘
🐬  The future of MySQL is Postgres   🐘🐬  The future of MySQL is Postgres   🐘
🐬 The future of MySQL is Postgres 🐘
 
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemkeProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
ProductAnonymous-April2024-WinProductDiscovery-MelissaKlemke
 
Boost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivityBoost PC performance: How more available memory can improve productivity
Boost PC performance: How more available memory can improve productivity
 
Presentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreterPresentation on how to chat with PDF using ChatGPT code interpreter
Presentation on how to chat with PDF using ChatGPT code interpreter
 

docker installation and basics

  • 1. Walid Ashraf Researcher , Software Developer, Instructor about.me/WalidAshraf DOCKER INSTALLATION AND BASICS
  • 2. Docker - Walid Ashraf Table of Contents Install Docker on Linux (Ubuntu) Using Docker Installing Docker On windows
  • 3. Official Documentation for Ubuntu https://docs.docker.com/engine/installation/linux/ubuntulinux/ INSTALL DOCKER FOR UBUNTU
  • 4. Docker - Walid Ashraf Prerequisites For Installation Docker Requires 64-bit OS Docker requires Linux kernel 3.10.0+ An UpdatedVersion of you Package Manager (APT) Lists (Docker List) AUFS Support • Installation of Kernel Extra Image (Linux-image-extra-* kernel packages) for Ubuntu Trusty 14.04, and Xenial 16.04
  • 5. Docker - Walid Ashraf Installation sudo apt-get install docker-engine Start The Docker Service • sudo service docker start Test your first container: sudo docker run hello-world
  • 6. Docker - Walid Ashraf Demo Time
  • 8. Docker - Walid Ashraf info, images, ps , pull docker info • States current client and daemon versions docker images • Lists Current Images at the machines docker search • Searches images on default repo docker pull • Downloads a image from the default repo. docker ps • List all containers at the machine • -a : List all containers
  • 9. Docker - Walid Ashraf Run Command docker run [OPTIONS] IMAGE [COMMAND] [ARG...] Set Container Name • -name value • Ex: docker run -name test HelloWorld Start in interactive mode • -i interactive mode • -t Open tty • Ex: docker run -it Ubuntu Set Working dir • Ex: docker run -w /home/ -i -t ubuntu pwd Start in detached Mode • Ex: docker run -d seqvence/static-site
  • 10. Docker - Walid Ashraf Run Command (Ports) Port Mapping • -p hostPort:ContainerPort • -p hostIp:hostPort:ContainerPort • -P all ports • docker run -P seqvence/static-site • docker run -d -p 80:80 --name webserver nginx List Container Port • docker port CONTAINER • Ex: docker port webserver
  • 11. Docker - Walid Ashraf Run Command (Volumes) Docker Volumes allow a container to mount a directory to be shared between the host and container(s) -v hostdirectory:containerdir containerdi:ro allow that the mounted container to be read only Ex: docker run -v /home/sharedfoo:/foo -it ubuntu bash Ex: docker run -v /home/sharedfoo:/foo:ro -it ubuntu bash
  • 12. Docker - Walid Ashraf Other Import Commands create • Creates a docker containers with all options but doesn’t start it start, pause, stop, rm stats • Gives a live preview of container utilization exec • Executes a command inside a container • docker exec [OPTIONS] CONTAINER COMMAND [ARG...] • Ex: docker exec -d ubuntu_bash touch /tmp/execWorks cp • Copies data from container to host and vice versa • Ex: docker cp container:/file1 /home/ • Ex: docker cp /home/file2 container:/
  • 13. Using Docker Tool Box Docker For windows WINDOWS INSTALLATION
  • 15. Docker - Walid Ashraf Using Docker toolbox Toolbox includes these Docker tools: • Docker Machine for running docker-machine commands • Docker Engine for running the docker commands • Docker Compose for running the docker-compose commands • Kitematic, the Docker GUI • a shell preconfigured for a Docker command-line environment • OracleVirtualBox Prerequisites • Docker Tool Box Requires 64 BitWindows 7 or More • Docker Requires H/WVirtualization ( AVirtual Box Requirement) InstallTools
  • 16. Docker - Walid Ashraf Using Terminal Using Docker quick start terminal to test any docker commands
  • 17. Docker - Walid Ashraf Using Kitematic Kitematic is a GUI Docker Controller You can search for any public images , create and Manager Containers. Kitematic also automates advanced features such as managing ports and configuring volumes. You can use Kitematic to change environment variables, stream logs, and single click terminal into your Docker container all from the GUI. Checkout • https://docs.docker.com/kitematic/userguide/
  • 18. Docker - Walid Ashraf Demo Time
  • 20. Docker - Walid Ashraf Installation Prerequisites Windows runs on 64bit Windows 10 Pro, Enterprise and Education (1511 November update, Build 10586 or later). The Hyper-V package must be enabled for Docker for Windows to work Installation Open Power shell and Use Docker command line
  • 21. Docker - Walid Ashraf21