# Course 31 - Dive Into Docker | Episode 8: Networking, Persistence, and System Optimization Page: https://stenobird.com/podcast/cybercode-academy-7578615/course-31-dive-into-docker-episode-8-networking-persistence-and-system-optimization Text version: https://stenobird.com/podcast/cybercode-academy-7578615/course-31-dive-into-docker-episode-8-networking-persistence-and-system-optimization.md Podcast: [CyberCode Academy](https://stenobird.com/podcast/cybercode-academy-7578615) Published: 2026-04-27T06:00:03+00:00 Episode link: https://www.spreaker.com/episode/course-31-dive-into-docker-episode-8-networking-persistence-and-system-optimization--71307504 Audio file: https://dts.podtrac.com/redirect.mp3/api.spreaker.com/download/episode/71307504/docker_networking_volumes_and_image_optimization.mp3 Processing state: not_requested JSON: https://stenobird.com/v1/public/podcasts/cybercode-academy-7578615/episodes/course-31-dive-into-docker-episode-8-networking-persistence-and-system-optimization Duration seconds: 1583 ## Resource In this lesson, you’ll learn about: advanced Docker architecture, networking, persistence, and image optimization1. Container Networking & Service CommunicationYou move deeper into Docker networking by connecting multiple containers together.🔹 Default vs Custom Networks Default bridge network: Basic isolation Requires manual IP handling Custom bridge network (recommended): Automatic DNS resolution Containers communicate by name (e.g., redis, db) docker network create my-network 🔹 Why this mattersInstead of:http://172.18.0.3:6379 You can use:redis:6379 👉 Much more stable and production-ready2. Sharing Data Between Containers🔹 Volumes Between Containers Use shared storage with: VOLUME instruction --volumes-from docker run --volumes-from container1 container2 🔹 Use Case Sharing: static files logs shared assets 3. Data Persistence with Named Volumes🔹 Problem Containers are ephemeral Data disappears when container is removed 🔹 Solution: Named Volumesdocker volume create app-data Managed internally by Docker Stored outside container lifecycle 🔹 Benefits Survives: container deletion restarts Ideal for: databases user data stateful apps 4. Image Optimization Techniques🔹 Reduce Build ContextUse .dockerignore:node_modules .env .git Prevents unnecessary files from being copied Improves build speed Reduces image size 🔹 Remove Build Dependencies Install build tools temporarily Remove them after build 👉 Results in significantly smaller images5. Advanced Startup Logic (ENTRYPOINT)🔹 Purpose Run scripts before main container starts ENTRYPOINT ["/start.sh"] 🔹 Use Cases Environment setup Database migrations Dynamic configuration 6. System Maintenance & Cleanup🔹 Check Disk Usagedocker system df 🔹 Clean Unused Resourcesdocker system prune Removes: stopped containers unused networks… ## Actions - request_transcript: `POST https://stenobird.com/v1/public/podcasts/cybercode-academy-7578615/episodes/course-31-dive-into-docker-episode-8-networking-persistence-and-system-optimization/transcription-requests` — Idempotently request low-priority transcript generation for this episode. - read_markdown: `GET https://stenobird.com/podcast/cybercode-academy-7578615/course-31-dive-into-docker-episode-8-networking-persistence-and-system-optimization.md` — Read the agent-friendly Markdown representation of this episode resource. A page view does not enqueue transcription. Agents should invoke `request_transcript` explicitly when they need this episode processed. ## Transcript Full transcripts are not published on public pages unless there is a clear rights basis.