What Docker created
- After the Docker deployment, the server used about 6 GB out of about 24 GB available storage.
44:14 - Big Docker workflows can consume several gigabytes because they create containers, images, volumes, and caches.
44:34
Containers, images, volumes
- Containers are lighter than virtual machines because they are Unix processes sharing the host operating system kernel.
44:5245:08 - Images consume the larger share of storage; the Weer server image was about 1 GB.
45:3045:55 - Images are like installed applications or blueprints; containers are like running processes created from those images.
46:1246:34 - Volumes keep data such as Postgres data and app logs outside the container so it does not vanish when containers are recreated.
46:3447:1047:25 - Weer logs every request with route/status/timing/time, and in this section logs are stored on disk instead of an external logging service.
48:1348:46
Disk usage observations
docker system dfshowed images around 3 GB, containers around 2 MB, local volumes around 50 MB, and build cache around 1.5 GB.49:2449:43- Running the Docker startup a second time was much faster because Docker reused cache.
49:5750:23 - The startup script includes helper commands for getting a shell inside the container.
50:41
Cleanup workflow
- The Docker Compose cleanup command with
--volumesremoves containers, images, and volumes for the project, but--volumesshould be avoided when the data should be kept.51:3351:56 - After removing the project containers and volumes, the application no longer serves requests.
52:1652:31 docker system prune -aremoves remaining unused caches/images, but it can also remove unrelated images not currently used by containers.53:1753:37- After full cleanup, Docker usage returned to zero and server disk usage dropped from about 6 GB to about 3 GB.
54:1954:37
When to use Docker
- Docker is useful for cloning a large repo, starting it with one command, testing with lots of data, and then fully cleaning it up without disturbing the host machine.
55:42 - The speaker warns against forcing Docker into every stage when it makes the workflow more complicated instead of simpler.
55:0155:26 - The course will mostly run things natively because the same Unix and operating-system concepts also underlie Docker.
56:0556:18