Docker Tutorial [](https://travis-ci.org/ellerbrock/docker-tutorial) [](https://github.com/ellerbrock/open-source-badge/) [](https://gitter.im/frapsoft/frapsoft/)
August 6, 2016 ยท View on GitHub

Docker Tutorial

Installation
Download the Docker Toolbox.
Its best practice to run each service in his own Docker container. To orchestrate them we need Docker Compose.
docker-machine for administration and configuration von Docker Machines
Documentation
Docker Images
Visit Docker Hub for Docker Containers.
Plain Linux
docker pull alpine- official Alpine | Documentation | apk | packagesdocker pull busybox- official BusyBoxdocker pull centos- CentOSdocker pull debian- official Debiandocker pull ubuntu- official Ubuntu
LAMP / LEMP Stack
docker pull eboraas/apache- official Apachedocker pull nginx- official nginxdocker pull php- official PHPdocker pull mariadb- official MariaDBdocker pull mysqlofficial MySQL
PHP Applications
docker pull wordpress- official Wordpressdocker pull piwik- official Piwikdocker pull phpmyadmin/phpmyadmin- phpmyadmin
Node.js
docker pull node- official Node.js
Phusion Passenger
brew install passenger- optimized Node.js Image
Flat File CMS
docker pull gugu/raneto- Raneto
Blog
docker pull ghost- official ghost
NoSQL
docker pull mongo- official MongoDBdocker pull redis- official Redis
Docker Images for Penetration Testing & Security
docker pull kalilinux/kali-linux-dockerofficial Kali Linuxdocker pull owasp/zap2docker-stable- official OWASP ZAPdocker pull wpscanteam/wpscan- official WPScandocker pull pandrew/metasploit- docker-metasploitdocker pull citizenstig/dvwa- Damn Vulnerable Web Application (DVWA)docker pull wpscanteam/vulnerablewordpress- Vulnerable WordPress Installationdocker pull hmlio/vaas-cve-2014-6271- Vulnerability as a service: Shellshockdocker pull hmlio/vaas-cve-2014-0160- Vulnerability as a service: Heartbleeddocker pull opendns/security-ninjas- Security Ninjasdocker pull usertaken/archlinux-pentest-lxde- Arch Linux Penetration Testerdocker pull diogomonica/docker-bench-security- Docker Bench for Securitydocker pull ismisepaul/securityshepherd- OWASP Security Shepherddocker pull danmx/docker-owasp-webgoat- OWASP WebGoat Project docker imagedocker pull citizenstig/nowasp- OWASP Mutillidae II Web Pen-Test Practice Application
Continuous Integration Testing
docker pull jenkins- official Jenkins
Others
docker pull jbenet/go-ipfs- IPFS
Commands
I recommend reading the Docker Cheat Sheet.
docker images- list installed imagesdocker ps- shows running containersdocker-machine active- list active machinesdocker-machine ip default- get the IP from the default container
Examples
Start Apache with http(s) and map htdocs folder
docker run -p 80:80 -p 443:443 -v /Volumes/Daten/Daten/Programmierung/coding/docker/data/htdocs:/var/www/html/ -d eboraas/apache
Start Kali Linux with interactive bash Shell
docker pull kalilinux/kali-linux-docker
docker run -t -i kalilinux/kali-linux-docker /bin/bash
Contact / Social Media
Get the latest News about Web Development, Open Source, Tooling, Server & Security
Development by
Developer / Author: Maik Ellerbrock
Company: Frapsoft
License
This work by Maik Ellerbrock is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.





