docker run ubuntu:14.04 /bin/echo 'Hello world'
docker ps (-a)
docker build
docker images
docker rmi
docker push
Dockerfile syntax
Setup Server 12 from top to bottom
Based on the prescription we have
Some components required as is
Some components will go through config change
Some components are not required anymore
Proudly invented elsewhere...
Is there a ready made image? Not really
Can we re-use some image as a baseline
First take: build a full stack image:
Centos
Hardening, users, sshd
Firewall, Antivirus, rkhunter, etc
LAMP
Backup, monitor, logging
...
Second take: Different Envs - Different Needs
Separate Prod from Dev
Re-use as much as possible => base-image
TODO: change config files instead of copying
Third take: separation of concerns
Desirably container per service
Linking containers
MySQL container + HTTPD Container
Restriction: image derivation is not possible
Both containers use the same Prod-Image
Fourth take: data persistency
Setting up data volumes
var/www/html volume
mysql volume
config volume
Fifth take: Orchestration
Need a tool to manage the containers
Meet fig AKA docker-compose
docker-compose.yml
Future Evolution:
Near term
Containers for additional services
Hardening the host
Longer term
Containers per site-service (i.e. pandora httpd)
No SSHD?
Own Registry