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 | packages -
docker pull busybox
- official BusyBox -
docker pull centos
- CentOS -
docker pull debian
- official Debian -
docker pull ubuntu
- official Ubuntu
LAMP / LEMP Stack
-
docker pull eboraas/apache
- official Apache -
docker pull nginx
- official nginx -
docker pull php
- official PHP -
docker pull mariadb
- official MariaDB -
docker pull mysql
official MySQL
PHP Applications
-
docker pull wordpress
- official Wordpress -
docker pull piwik
- official Piwik -
docker 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 MongoDB -
docker pull redis
- official Redis
Docker Images for Penetration Testing & Security
-
docker pull kalilinux/kali-linux-docker
official Kali Linux -
docker pull owasp/zap2docker-stable
- official OWASP ZAP -
docker pull wpscanteam/wpscan
- official WPScan -
docker pull pandrew/metasploit
- docker-metasploit -
docker pull citizenstig/dvwa
- Damn Vulnerable Web Application (DVWA) -
docker pull wpscanteam/vulnerablewordpress
- Vulnerable WordPress Installation -
docker pull hmlio/vaas-cve-2014-6271
- Vulnerability as a service: Shellshock -
docker pull hmlio/vaas-cve-2014-0160
- Vulnerability as a service: Heartbleed -
docker pull opendns/security-ninjas
- Security Ninjas -
docker pull usertaken/archlinux-pentest-lxde
- Arch Linux Penetration Tester -
docker pull diogomonica/docker-bench-security
- Docker Bench for Security -
docker pull ismisepaul/securityshepherd
- OWASP Security Shepherd -
docker pull danmx/docker-owasp-webgoat
- OWASP WebGoat Project docker image -
docker 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 images -
docker ps
- shows running containers -
docker-machine active
- list active machines -
docker-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.