Demystifying 


Meet the portable future



 

About me





Abhinav Sejpal
Application Security Consultant 
Accenture, London U.K.



https://bugwrangler.in




 

Today


  • Short presentation covering docker basics
  • Lab Setup
  • Ask questions anytime!


Docker is something new



Docker.io says:

Docker is an open-source engine that automates the deployment of any application as a lightweight, portable, self-sufficient container that will run virtually anywhere. 


Source: docker.io 


Source: docker.io 
Docker Vs Vagrant 

Virtualization tool?





Configuration manager?
VM manager

Docker success story


 

Docker hub



How to install Docker

https://docs.docker.com/engine/installation/
 

Demo 1 


 

 


Step 1 -

https://hub.docker.com/_/nginx/






Output




^^ docker images ^^

Step 2



docker run --name my-nginx -d -p 80:80 nginx:1.13.5



Step 3


docker exec -ti my-nginx ./bin/sh


Mount source code 


Sysadmin ^ DevOps Team


Demo 2




                                                  

Docker Run Config 


MySql - https://hub.docker.com/_/mysql/ 

  •  docker run --name mysql 
  •  -e MYSQL_ROOT_PASSWORD=root 
  •  -p 3306:3306 
  •  -d mysql

Wordpress :-  https://hub.docker.com/_/wordpress/ 
  • docker run --name mywordpress 
  • --link mysql:mysql 
  • -p 80:80 
  • -d  wordpress
 


Demo 3





                                  

Docker Run Config 



  • docker run --name my-apache-app 
  • -p 80:80 
  • -v "$PWD"/mobilesecuritywiki:/usr/local/apache2/htdocs/ 
  • -d httpd
 
 
 




Questions? 




Thank you


Made with Slides.com