SlideShare a Scribd company logo
3
Most read
4
Most read
15
Most read
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

More Related Content

PPTX
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
PDF
Docker Introduction
PPTX
Docker intro
PDF
Introduction to Docker storage, volume and image
PPTX
Docker 101 : Introduction to Docker and Containers
PDF
Introduction to docker
PPTX
Dockers and containers basics
PDF
Introduction to Docker - VIT Campus
Docker Compose | Docker Compose Tutorial | Docker Tutorial For Beginners | De...
Docker Introduction
Docker intro
Introduction to Docker storage, volume and image
Docker 101 : Introduction to Docker and Containers
Introduction to docker
Dockers and containers basics
Introduction to Docker - VIT Campus

What's hot (20)

PPTX
Introduction to Docker
PDF
Docker Compose by Aanand Prasad
PPTX
Docker introduction & benefits
PPTX
Docker introduction (1)
PDF
Introduction to Docker Compose
PPTX
Docker introduction for the beginners
PPTX
Getting started with Docker
PPTX
Docker, LinuX Container
PPTX
Ansible presentation
PPTX
What is Docker
PDF
Introduction to container based virtualization with docker
PPTX
Docker Basics
PDF
Introduction to Docker
PPTX
Introduction to Docker - 2017
PDF
Introduction to Docker Compose | Docker Intermediate Workshop
PPT
Docker introduction
PDF
Intro docker
PDF
What Is Kubernetes | Kubernetes Introduction | Kubernetes Tutorial For Beginn...
PPTX
Docker.pptx
PDF
Intro To Docker
Introduction to Docker
Docker Compose by Aanand Prasad
Docker introduction & benefits
Docker introduction (1)
Introduction to Docker Compose
Docker introduction for the beginners
Getting started with Docker
Docker, LinuX Container
Ansible presentation
What is Docker
Introduction to container based virtualization with docker
Docker Basics
Introduction to Docker
Introduction to Docker - 2017
Introduction to Docker Compose | Docker Intermediate Workshop
Docker introduction
Intro docker
What Is Kubernetes | Kubernetes Introduction | Kubernetes Tutorial For Beginn...
Docker.pptx
Intro To Docker
Ad

Viewers also liked (20)

PDF
Docker Basics
PDF
Java Builds with Maven and Ant
PDF
Docker by Example - Basics
ODP
Docker: The basics - Including a demo with an awesome full-stack JS app
PPT
Introduction to Apache Ant
PPT
Apache Ant
PPTX
Apache Ant
PPTX
PDF
Talk on PHP Day Uruguay about Docker
PPT
Apache ANT vs Apache Maven
PPT
Apache Ant
PDF
PPTX
Apache ant
PDF
Dockerfile
PDF
Docker from basics to orchestration (PHPConfBr2015)
PDF
Infrastructure testing with Jenkins, Puppet and Vagrant - Agile Testing Days ...
PDF
Chef Cookbook Testing and Continuous Integration
PDF
Trends at JavaOne 2016: Microservices, Docker and Cloud-Native Middleware
PPT
Red Hat Certified engineer course
PDF
Blockchain + Streaming Analytics with Ethereum and TIBCO StreamBase
Docker Basics
Java Builds with Maven and Ant
Docker by Example - Basics
Docker: The basics - Including a demo with an awesome full-stack JS app
Introduction to Apache Ant
Apache Ant
Apache Ant
Talk on PHP Day Uruguay about Docker
Apache ANT vs Apache Maven
Apache Ant
Apache ant
Dockerfile
Docker from basics to orchestration (PHPConfBr2015)
Infrastructure testing with Jenkins, Puppet and Vagrant - Agile Testing Days ...
Chef Cookbook Testing and Continuous Integration
Trends at JavaOne 2016: Microservices, Docker and Cloud-Native Middleware
Red Hat Certified engineer course
Blockchain + Streaming Analytics with Ethereum and TIBCO StreamBase
Ad

Similar to docker installation and basics (20)

PDF
Running the Oracle SOA Suite Environment in a Docker Container
PDF
Docker fundamentals
PPTX
Docker
PDF
Introduction to Docker
PPTX
Getting Started with Docker
PDF
Docker introduction
PDF
Docker use dockerfile
PPTX
moscmy2016: Extending Docker
PDF
Rally_Docker_deployment_JumpVM
PDF
Introduction to docker
PDF
dockerizing web application
PPTX
How to _docker
PDF
how to setup Docker in a Windows, Linux or Mac.pdf
PPTX
Detailed Introduction To Docker
PPSX
Docker and containers - Presentation Slides by Priyadarshini Anand
PDF
Victor Vieux at Docker Paris Meetup #1
PDF
Docker presentation | Paris Docker Meetup
PPTX
Install CentOS in WSL from docker iso file
PPTX
Gebruik dezelfde Docker container voor Java applicaties tijdens ontwikkelen e...
PDF
時代在變 Docker 要會:台北 Docker 一日入門篇
Running the Oracle SOA Suite Environment in a Docker Container
Docker fundamentals
Docker
Introduction to Docker
Getting Started with Docker
Docker introduction
Docker use dockerfile
moscmy2016: Extending Docker
Rally_Docker_deployment_JumpVM
Introduction to docker
dockerizing web application
How to _docker
how to setup Docker in a Windows, Linux or Mac.pdf
Detailed Introduction To Docker
Docker and containers - Presentation Slides by Priyadarshini Anand
Victor Vieux at Docker Paris Meetup #1
Docker presentation | Paris Docker Meetup
Install CentOS in WSL from docker iso file
Gebruik dezelfde Docker container voor Java applicaties tijdens ontwikkelen e...
時代在變 Docker 要會:台北 Docker 一日入門篇

Recently uploaded (20)

PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PPT
Teaching material agriculture food technology
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
NewMind AI Monthly Chronicles - July 2025
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Encapsulation theory and applications.pdf
PDF
Per capita expenditure prediction using model stacking based on satellite ima...
PDF
Review of recent advances in non-invasive hemoglobin estimation
PDF
KodekX | Application Modernization Development
PDF
Empathic Computing: Creating Shared Understanding
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Modernizing your data center with Dell and AMD
PDF
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Agricultural_Statistics_at_a_Glance_2022_0.pdf
PDF
Unlocking AI with Model Context Protocol (MCP)
PDF
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
PDF
Machine learning based COVID-19 study performance prediction
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Teaching material agriculture food technology
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
NewMind AI Monthly Chronicles - July 2025
MYSQL Presentation for SQL database connectivity
Encapsulation theory and applications.pdf
Per capita expenditure prediction using model stacking based on satellite ima...
Review of recent advances in non-invasive hemoglobin estimation
KodekX | Application Modernization Development
Empathic Computing: Creating Shared Understanding
Chapter 3 Spatial Domain Image Processing.pdf
Modernizing your data center with Dell and AMD
Bridging biosciences and deep learning for revolutionary discoveries: a compr...
Encapsulation_ Review paper, used for researhc scholars
Agricultural_Statistics_at_a_Glance_2022_0.pdf
Unlocking AI with Model Context Protocol (MCP)
How UI/UX Design Impacts User Retention in Mobile Apps.pdf
Machine learning based COVID-19 study performance prediction
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...

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