Docker: Difference between revisions

966 bytes added ,  2 years ago
(→‎Installing MediaWiki: added docker MW)
 
(4 intermediate revisions by the same user not shown)
Line 2:
__TOC__
<br />
 
= Basics =
*Docker Components:
 
- Image: Content at rest, Not the full OS, but just the basic environment
- Container: Running Image
- Engine: Software that executes commands for containers. Networking & Volumes are part of Engine.
- Registry: Stores, Distributes & Manages docker images.
- Control Plane: Management Plane for Container & Cluster Orchestration.
 
*Container Orchestration:
- Docker Swarm
- [[Kubernetes]]
- Mesos Marathon
- Cloud Foundry Diego
- Amazon ECS
- Azure Container Service
 
= Installation =
Line 41 ⟶ 58:
Removing a Container:
docker rm <container-id>
 
Delete all containers:
docker rm $(docker ps -a -q)
 
Delete all images:
docker rmi $(docker images -q)
 
Force delete all images (even with linked containers):
docker rmi $(docker images -q) --force
 
Remove all stopped containers, unused volumes, unused networks, all images without at least one container associated to them:
docker system prune -a -f
 
= Installing MediaWiki =
Line 187 ⟶ 216:
ssh-keygen
 
= Docker Packet Captures =
 
docker exec -it 428947239426349 tcpdump -N -A 'port 80' -w capture.pcap
 
<br />