_CORE
AI & Agentic Systems Core Information Systems Cloud & Platform Engineering Data Platform & Integration Security & Compliance QA, Testing & Observability IoT, Automation & Robotics Mobile & Digital Banking & Finance Insurance Public Administration Defense & Security Healthcare Energy & Utilities Telco & Media Manufacturing Logistics & E-commerce Retail & Loyalty
References Technologies Blog Know-how Tools
About Collaboration Careers
CS EN
Let's talk

Docker Networking deep dive

17. 07. 2022 1 min read intermediate

Správný networking je klíčový pro produkční kontejnery.

Types sítí

docker network ls

bridge — výchozí, izolovaná

host — sdílí síť hostu

overlay — multi-host (Swarm)

macvlan — vlastní MAC

Custom bridge

docker network create mynet docker run -d –name web –network mynet nginx docker run -d –name api –network mynet node-api

curl http://api:3000 z web kontejneru

Compose

services: web: networks: [frontend] api: networks: [frontend, backend] db: networks: [backend] networks: frontend: backend: internal: true

Debug

docker network inspect mynet docker exec web nslookup api

Networking je klíč

Custom bridge, oddělujte sítě, DNS jména místo IP.

dockernetworkingbridge
Share:

CORE SYSTEMS tým

Stavíme core systémy a AI agenty, které drží provoz. 15 let zkušeností s enterprise IT.