A server host 20 websites. Hacker ddos one of those sites.
What happen ?
Docker docs : https://docs.docker.com/
Meetup
docker images
docker ps
docker ps -a
docker run hello-world
docker run -d hello-world
docker search alpine-nginx
docker pull smebberson/alpine-nginx
docker run -d --name nginx -p 80:80 smebberson/alpine-nginx
docker exec -it nginx bash
docker pull smebberson/alpine-nginx
docker run -d --name volume smebberson/alpine-nginx
docker exec -it volume touch foo
docker rm -f volume
docker run -d --name volume smebberson/alpine-nginx
docker exec -it volume ls
docker rm -f volume
docker run -d --name nginx -v test:/data smebberson/alpine-nginx
docker exec -it nginx mkdir touch /data/foo.bar
docker exec -it nginx ls /data
docker rm -f nginx
docker run -d --name nginx -v test:/data smebberson/alpine-nginx
docker exec -it nginx ls /data
docker run -d --name nginx2 -v test:/data smebberson/alpine-nginx
docker exec -it nginx2 ls /data
docker run -d --name centos1 centos
docker run -d --name centos2 --link nginx1 centos
docker exec -it centos2 ping centos
version: '2'
services:
db:
image: mysql:5.7
volumes:
- "./.data/db:/var/lib/mysql"
restart: always
environment:
MYSQL_ROOT_PASSWORD: wordpress
MYSQL_DATABASE: wordpress
MYSQL_USER: wordpress
MYSQL_PASSWORD: wordpress
wordpress:
depends_on:
- db
image: wordpress:latest
links:
- db
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_PASSWORD: wordpress