{"id":7184,"date":"2026-09-30T13:13:45","date_gmt":"2026-09-30T18:13:45","guid":{"rendered":"https:\/\/ykim.synology.me\/wordpress\/docker-network-7184\/"},"modified":"2026-09-30T15:52:35","modified_gmt":"2026-09-30T20:52:35","slug":"docker-network","status":"publish","type":"post","link":"https:\/\/ykim.synology.me\/wordpress\/docker-network-7184\/","title":{"rendered":"Docker Network"},"content":{"rendered":"\n<figure class=\"wp-block-image size-large is-resized\"><img decoding=\"async\" src=\"https:\/\/github.com\/yBarn1\/Images\/blob\/main\/produce\/green-apples-produce-bin.jpg?raw=true\" alt=\"\" style=\"width:auto;height:500px\"\/><\/figure>\n\n\n<p><div class=\"github-readme-container markdown-body\"><div id=\"file\" class=\"md\" data-path=\"Docker\/docker-network-ko.md\"><article class=\"markdown-body entry-content container-lg\" itemprop=\"text\"><div class=\"markdown-heading\" dir=\"auto\"><h1 class=\"heading-element\" dir=\"auto\">Docker Network<\/h1><a id=\"user-content-docker-network\" class=\"anchor\" aria-label=\"Permalink: Docker Network\" href=\"#docker-network\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Rev. 6 | Created: 2026-07-12 | Updated: 2026-10-11 01:25 CDT<\/p>\n<p dir=\"auto\">\uc774 \uc2a4\ud0dd\uc758 \ucee8\ud14c\uc774\ub108 \uac04 \ud1b5\uc2e0\uc5d0 \uc4f0\ub294 docker network \ub97c \uc815\ub9ac\ud569\ub2c8\ub2e4. \uae30\ubcf8\uc740 <strong>Local Network<\/strong> (\ud638\uc2a4\ud2b8\ubcc4 bridge + \ud06c\ub85c\uc2a4\uba38\uc2e0\uc740 LAN IP) \uc774\uace0, \uc804 \ub178\ub4dc\uac00 LAN-native Linux \uc778 \uacbd\uc6b0\uc5d0 \ud55c\ud574 <strong>Swarm Overlay Network<\/strong> \ub85c docker \uc11c\ube44\uc2a4 \uc774\ub984\uc744 \uba38\uc2e0 \ub108\uba38\uae4c\uc9c0 \ud1b5\uc77c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">1. Local Network<\/h2><a id=\"user-content-1-local-network\" class=\"anchor\" aria-label=\"Permalink: 1. Local Network\" href=\"#1-local-network\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\uc774 \uc2a4\ud0dd\uc758 \uae30\ubcf8 \ubc29\uc2dd\uc785\ub2c8\ub2e4. \uac01 \ud638\uc2a4\ud2b8\uc5d0 \ub85c\uceec bridge network <code>mlops<\/code> \ub97c \ub450\uace0, \uc811\uadfc \ubc29\uc2dd\uc740 \ucee8\ud14c\uc774\ub108\uac00 <strong>\uac19\uc740 \uba38\uc2e0<\/strong>\uc778\uc9c0 <strong>\ub2e4\ub978 \uba38\uc2e0<\/strong>\uc778\uc9c0\uc5d0 \ub530\ub77c \uac08\ub9bd\ub2c8\ub2e4 (<strong>LAN IP \ubaa8\ub378<\/strong>):<\/p>\n<ul dir=\"auto\">\n<li><strong>\uac19\uc740 \uba38\uc2e0<\/strong> \u2192 docker <strong>\uc11c\ube44\uc2a4 \uc774\ub984<\/strong> (<code>prefect_server<\/code>\u00b7<code>minio<\/code>\u00b7<code>postgres<\/code>\u00b7<code>mlflow<\/code>). \uac19\uc740 \ud638\uc2a4\ud2b8\uc758 <code>mlops<\/code> \uc5d0 \ubd99\uc740 \ucee8\ud14c\uc774\ub108\ub07c\ub9ac \uc774\ub984\uc73c\ub85c \ubc14\ub85c \ucc3e\uc2b5\ub2c8\ub2e4.<\/li>\n<li><strong>\ub2e4\ub978 \uba38\uc2e0<\/strong> \u2192 \uadf8 \uc11c\ube44\uc2a4\uac00 \uc788\ub294 <strong>\ud638\uc2a4\ud2b8\uc758 LAN IP + \uac8c\uc2dc \ud3ec\ud2b8<\/strong> (\uc608: <code>http:\/\/&lt;SERVER_IP&gt;:4200\/api<\/code>, <code>&lt;MinIO \ud638\uc2a4\ud2b8 IP&gt;:9000<\/code>).<\/li>\n<\/ul>\n<p dir=\"auto\">\uc65c \ub2e4\ub978 \uba38\uc2e0\uc740 \uc774\ub984\uc774 \uc548 \ub418\ub098 \u2014 \uae30\ubcf8 <code>bridge<\/code> network \ub294 <strong>\ud638\uc2a4\ud2b8 \ub85c\uceec<\/strong>\uc774\ub77c, \uac01 \uba38\uc2e0\uc5d0 \uac19\uc740 \uc774\ub984 <code>mlops<\/code> \ub97c \ub9cc\ub4e4\uc5b4\ub3c4 <strong>\uc774\ub984\ub9cc \uac19\uc744 \ubfd0 \ubcc4\uac1c\uc758 network<\/strong> \uc785\ub2c8\ub2e4. docker \uc11c\ube44\uc2a4 \uc774\ub984\uc740 \uadf8 \ud638\uc2a4\ud2b8\uc758 network \uc548\uc5d0\uc11c\ub9cc \ud574\uc11d\ub418\ubbc0\ub85c <strong>\uba38\uc2e0\uc744 \ub118\uc9c0 \ubabb\ud569\ub2c8\ub2e4.<\/strong> \uadf8\ub798\uc11c \ud06c\ub85c\uc2a4\uba38\uc2e0 \uc811\uadfc\uc740 LAN IP \ub85c \ud569\ub2c8\ub2e4. \uc774\ub984\uc744 \uba38\uc2e0 \ub108\uba38\uae4c\uc9c0 \uc4f0\ub824\uba74 <a href=\"#2-swarm-overlay-network\">\u00a72 Swarm Overlay Network<\/a> \uac00 \ud544\uc694\ud558\uc9c0\ub9cc, \uc804 \ub178\ub4dc\uac00 LAN-native Linux \uc5ec\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">Create the Network<\/h3><a id=\"user-content-create-the-network\" class=\"anchor\" aria-label=\"Permalink: Create the Network\" href=\"#create-the-network\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\ucee8\ud14c\uc774\ub108\ub97c \ub744\uc6b8 <strong>\uac01 \ud638\uc2a4\ud2b8<\/strong>\uc5d0\uc11c \ub85c\uceec bridge <code>mlops<\/code> \ub97c \ud55c \ubc88 \ub9cc\ub4ed\ub2c8\ub2e4 (\uc774\ubbf8 \uc788\uc73c\uba74 \ubb34\ud574).<\/p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"docker network create mlops        # local bridge; run once per host\ndocker network ls | grep mlops     # DRIVER = bridge, SCOPE = local\"><pre>docker network create mlops        <span class=\"pl-c\"><span class=\"pl-c\">#<\/span> local bridge; run once per host<\/span>\ndocker network ls <span class=\"pl-k\">|<\/span> grep mlops     <span class=\"pl-c\"><span class=\"pl-c\">#<\/span> DRIVER = bridge, SCOPE = local<\/span><\/pre><\/div>\n<p dir=\"auto\">\uac01 \uc11c\ube44\uc2a4\uc758 compose \ub294 \uc774 <code>mlops<\/code> \ub97c external network \ub85c \ucc38\uc870\ud569\ub2c8\ub2e4. \uac19\uc740 \ud638\uc2a4\ud2b8\uc758 \ucee8\ud14c\uc774\ub108\ub294 <strong>\uc11c\ube44\uc2a4 \uc774\ub984<\/strong>\uc73c\ub85c, \ub2e4\ub978 \ud638\uc2a4\ud2b8\uc758 \uc11c\ube44\uc2a4\ub294 <strong>LAN IP<\/strong> \ub85c \uc811\uadfc\ud569\ub2c8\ub2e4 (<code>PREFECT_API_URL<\/code>\u00b7credential endpoint \ub4f1\uc5d0\uc11c \uc9c0\uc815).<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h2 class=\"heading-element\" dir=\"auto\">2. Swarm Overlay Network<\/h2><a id=\"user-content-2-swarm-overlay-network\" class=\"anchor\" aria-label=\"Permalink: 2. Swarm Overlay Network\" href=\"#2-swarm-overlay-network\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\uc5ec\ub7ec \uba38\uc2e0\uc5d0\uc11c LAN IP \ub300\uc2e0 <strong>docker \uc11c\ube44\uc2a4 \uc774\ub984\uc744 \uadf8\ub300\ub85c<\/strong> \uc4f0\uace0 \uc2f6\uc73c\uba74, <strong>Docker Swarm \uc758 overlay network<\/strong> \ub85c \uc804 \ud638\uc2a4\ud2b8\ub97c \ud558\ub098\uc758 \uac00\uc0c1 network \ub85c \ubb36\uc2b5\ub2c8\ub2e4. <a href=\"#1-local-network\">\u00a71 Local Network<\/a> \uc758 LAN IP \ubaa8\ub378 \ub300\uc2e0 \uc4f0\ub294 <strong>\uba40\ud2f0 \uba38\uc2e0\u00b7all-Linux \ub300\uc548<\/strong> \uc785\ub2c8\ub2e4.<\/p>\n<blockquote>\n<p dir=\"auto\"><g-emoji class=\"g-emoji\" alias=\"warning\">\u26a0\ufe0f<\/g-emoji> <strong>\uc81c\uc57d<\/strong> \u2014 overlay \ub370\uc774\ud130\ud50c\ub808\uc778 (VXLAN) \uc740 \uac01 \ub178\ub4dc\uac00 <strong>LAN \uc5d0 \uc9c1\uc811 \ubd99\uc740 native Linux Docker<\/strong> \uc77c \ub54c\ub9cc \ud750\ub985\ub2c8\ub2e4. <strong>Windows\/macOS \uc758 Docker Desktop \ub178\ub4dc\ub294 VM (WSL2 \ub4f1) NAT \ub4a4\ub77c \ud06c\ub85c\uc2a4\ud638\uc2a4\ud2b8 overlay \uac00 \ub3d9\uc791\ud558\uc9c0 \uc54a\uc2b5\ub2c8\ub2e4<\/strong> \u2014 \uadf8 \uacbd\uc6b0 \u00a71 \uc758 LAN IP \ubaa8\ub378\uc744 \uc501\ub2c8\ub2e4. overlay \ub85c \uac00\ub824\uba74 \ubaa8\ub4e0 \ub178\ub4dc\uac00 LAN-native Linux (\ubca0\uc5b4\uba54\ud0c8 \ub610\ub294 bridged Linux VM) \uc5ec\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<\/blockquote>\n<p dir=\"auto\">\uc138 \ub2e8\uacc4\ub85c \uad6c\uc131\ud569\ub2c8\ub2e4 \u2014 <strong>Firewall<\/strong> (\ub178\ub4dc \uac04 \ud3ec\ud2b8) \u00b7 <strong>Swarm Configuration<\/strong> (\ub9e4\ub2c8\uc800\u00b7worker) \u00b7 <strong>Overlay Network<\/strong> (attachable overlay \uc0dd\uc131). \uc131\uacf5\ud558\uba74 \uac01 compose \ub294 <code>mlops<\/code> \ub97c external network \ub85c \ucc38\uc870\ud558\uace0, \uc8fc\uc18c\ub97c LAN IP \ub300\uc2e0 <strong>\uc11c\ube44\uc2a4 \uc774\ub984<\/strong> \uc73c\ub85c \ud1b5\uc77c\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">Firewall<\/h3><a id=\"user-content-firewall\" class=\"anchor\" aria-label=\"Permalink: Firewall\" href=\"#firewall\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">Swarm \ub178\ub4dc\ub07c\ub9ac \uc544\ub798 \ud3ec\ud2b8\uac00 \uc11c\ub85c \uc5f4\ub824 \uc788\uc5b4\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<p dir=\"auto\">Table 1. Swarm node ports<\/p>\n<markdown-accessiblity-table><table>\n<thead>\n<tr>\n<th align=\"center\">Port<\/th>\n<th align=\"center\">Protocol<\/th>\n<th align=\"center\">Purpose<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td align=\"center\">2377<\/td>\n<td align=\"center\">tcp<\/td>\n<td align=\"center\">cluster management (manager only)<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">7946<\/td>\n<td align=\"center\">tcp + udp<\/td>\n<td align=\"center\">node-to-node communication (gossip \/ discovery)<\/td>\n<\/tr>\n<tr>\n<td align=\"center\">4789<\/td>\n<td align=\"center\">udp<\/td>\n<td align=\"center\">overlay data plane (VXLAN)<\/td>\n<\/tr>\n<\/tbody>\n<\/table><\/markdown-accessiblity-table>\n<p dir=\"auto\">\ubcf4\ud1b5 Swarm join \ub4a4 <code>docker node ls<\/code> (Swarm Configuration) \uc5d0 \ub178\ub4dc\uac00 \ubaa8\ub450 \ubcf4\uc774\uba74 \ubc29\ud654\ubcbd\uc740 \ubb38\uc81c\uc5c6\ub294 \uac83\uc785\ub2c8\ub2e4. worker \uac00 \uc548 \ubcf4\uc774\uac70\ub098 join \uc774 \ub9c9\ud788\uba74, \uac01 \ub178\ub4dc\uc758 <strong>ufw<\/strong> \ub85c \uc704 \ud3ec\ud2b8\ub97c \uc5fd\ub2c8\ub2e4.<\/p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"# check whether ufw is active (inactive -&gt; not blocking, no action needed)\nsudo ufw status verbose\n\n# if active, open the swarm ports\n#   manager (prefect_server machine): 2377 + 7946 + 4789\nsudo ufw allow 2377\/tcp        # cluster management (manager only)\nsudo ufw allow 7946            # node-to-node gossip (tcp + udp)\nsudo ufw allow 4789\/udp        # overlay data plane (VXLAN)\n#   worker machines: 7946 + 4789 only (2377 not needed inbound)\n\n# confirm the rules landed\nsudo ufw status numbered       # 2377\/tcp, 7946, 4789\/udp should show ALLOW\"><pre><span class=\"pl-c\"><span class=\"pl-c\">#<\/span> check whether ufw is active (inactive -&gt; not blocking, no action needed)<\/span>\nsudo ufw status verbose\n\n<span class=\"pl-c\"><span class=\"pl-c\">#<\/span> if active, open the swarm ports<\/span>\n<span class=\"pl-c\"><span class=\"pl-c\">#<\/span>   manager (prefect_server machine): 2377 + 7946 + 4789<\/span>\nsudo ufw allow 2377\/tcp        <span class=\"pl-c\"><span class=\"pl-c\">#<\/span> cluster management (manager only)<\/span>\nsudo ufw allow 7946            <span class=\"pl-c\"><span class=\"pl-c\">#<\/span> node-to-node gossip (tcp + udp)<\/span>\nsudo ufw allow 4789\/udp        <span class=\"pl-c\"><span class=\"pl-c\">#<\/span> overlay data plane (VXLAN)<\/span>\n<span class=\"pl-c\"><span class=\"pl-c\">#<\/span>   worker machines: 7946 + 4789 only (2377 not needed inbound)<\/span>\n\n<span class=\"pl-c\"><span class=\"pl-c\">#<\/span> confirm the rules landed<\/span>\nsudo ufw status numbered       <span class=\"pl-c\"><span class=\"pl-c\">#<\/span> 2377\/tcp, 7946, 4789\/udp should show ALLOW<\/span><\/pre><\/div>\n<blockquote>\n<p dir=\"auto\">ufw \ub97c \uc0c8\ub85c \ucf24 \ub54c\ub294 \uc7a0\uae08 \ubc29\uc9c0\ub97c \uc704\ud574 SSH \ubd80\ud130 \ud5c8\uc6a9\ud569\ub2c8\ub2e4 \u2014 <code>sudo ufw allow OpenSSH<\/code> \ud6c4 <code>sudo ufw enable<\/code>.<\/p>\n<\/blockquote>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">Swarm Configuration<\/h3><a id=\"user-content-swarm-configuration\" class=\"anchor\" aria-label=\"Permalink: Swarm Configuration\" href=\"#swarm-configuration\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\ud55c \uba38\uc2e0 (\uc608: prefect_server machine) \uc744 <strong>\ub9e4\ub2c8\uc800<\/strong>\ub85c \ucd08\uae30\ud654\ud558\uace0, \ub098\uba38\uc9c0 \uba38\uc2e0 (prefect_worker machine \u00b7 backing service machine \ub4e4) \uc744 <strong>worker<\/strong>\ub85c \uc870\uc778\ud569\ub2c8\ub2e4.<\/p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"# on the manager (e.g. the prefect_server machine)\ndocker swarm init --advertise-addr &lt;manager LAN IP&gt;\n#   -&gt; prints a &quot;docker swarm join --token &lt;TOKEN&gt; &lt;manager IP&gt;:2377&quot; command\n\n# on each worker machine \u2014 run that printed join command\ndocker swarm join --token &lt;TOKEN&gt; &lt;manager IP&gt;:2377\"><pre><span class=\"pl-c\"><span class=\"pl-c\">#<\/span> on the manager (e.g. the prefect_server machine)<\/span>\ndocker swarm init --advertise-addr <span class=\"pl-k\">&lt;<\/span>manager LAN IP<span class=\"pl-k\">&gt;<\/span>\n<span class=\"pl-c\"><span class=\"pl-c\">#<\/span>   -&gt; prints a \"docker swarm join --token &lt;TOKEN&gt; &lt;manager IP&gt;:2377\" command<\/span>\n\n<span class=\"pl-c\"><span class=\"pl-c\">#<\/span> on each worker machine \u2014 run that printed join command<\/span>\ndocker swarm join --token <span class=\"pl-k\">&lt;<\/span>TOKEN<span class=\"pl-k\">&gt;<\/span> <span class=\"pl-k\">&lt;<\/span>manager IP<span class=\"pl-k\">&gt;<\/span>:2377<\/pre><\/div>\n<p dir=\"auto\">\uac80\uc99d \u2014 \ub9e4\ub2c8\uc800\uc5d0\uc11c \ubaa8\ub4e0 \ub178\ub4dc\uac00 <code>Ready<\/code> \ub85c \ubcf4\uc774\ub294\uc9c0 \ud655\uc778\ud569\ub2c8\ub2e4.<\/p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"docker node ls          # manager (Leader) + every joined worker, STATUS = Ready\"><pre>docker node ls          <span class=\"pl-c\"><span class=\"pl-c\">#<\/span> manager (Leader) + every joined worker, STATUS = Ready<\/span><\/pre><\/div>\n<blockquote>\n<p dir=\"auto\"><g-emoji class=\"g-emoji\" alias=\"warning\">\u26a0\ufe0f<\/g-emoji> worker \uac00 <strong>Docker Desktop (Windows\/macOS)<\/strong> \uc774\uba74 <code>Ready<\/code> \ub85c \ubcf4\uc5ec\ub3c4 overlay \ub370\uc774\ud130\ud50c\ub808\uc778\uc774 \uc548 \ud758\ub7ec, \uc544\ub798 Overlay Network \uc758 \uad00\ud1b5 \ud14c\uc2a4\ud2b8\uc5d0\uc11c \uc2e4\ud328\ud569\ub2c8\ub2e4 (<code>context deadline exceeded<\/code>). all-Linux \ub178\ub4dc\uc5ec\uc57c \ud569\ub2c8\ub2e4.<\/p>\n<\/blockquote>\n<div class=\"markdown-heading\" dir=\"auto\"><h3 class=\"heading-element\" dir=\"auto\">Overlay Network<\/h3><a id=\"user-content-overlay-network\" class=\"anchor\" aria-label=\"Permalink: Overlay Network\" href=\"#overlay-network\"><svg data-component=\"Octicon\" class=\"octicon octicon-link\" viewBox=\"0 0 16 16\" version=\"1.1\" width=\"16\" height=\"16\" aria-hidden=\"true\"><path d=\"m7.775 3.275 1.25-1.25a3.5 3.5 0 1 1 4.95 4.95l-2.5 2.5a3.5 3.5 0 0 1-4.95 0 .751.751 0 0 1 .018-1.042.751.751 0 0 1 1.042-.018 1.998 1.998 0 0 0 2.83 0l2.5-2.5a2.002 2.002 0 0 0-2.83-2.83l-1.25 1.25a.751.751 0 0 1-1.042-.018.751.751 0 0 1-.018-1.042Zm-4.69 9.64a1.998 1.998 0 0 0 2.83 0l1.25-1.25a.751.751 0 0 1 1.042.018.751.751 0 0 1 .018 1.042l-1.25 1.25a3.5 3.5 0 1 1-4.95-4.95l2.5-2.5a3.5 3.5 0 0 1 4.95 0 .751.751 0 0 1-.018 1.042.751.751 0 0 1-1.042.018 1.998 1.998 0 0 0-2.83 0l-2.5 2.5a1.998 1.998 0 0 0 0 2.83Z\"><\/path><\/svg><\/a><\/div>\n<p dir=\"auto\">\uc804 \ub178\ub4dc\uac00 \uacf5\uc720\ud560 <strong>attachable overlay<\/strong> network \ub97c \ub9e4\ub2c8\uc800\uc5d0\uc11c \ud55c \ubc88 \ub9cc\ub4ed\ub2c8\ub2e4. <code>--attachable<\/code> \uc774\ub77c\uc57c compose \/ <code>docker run<\/code> \uc73c\ub85c \ub728\ub294 <strong>\uc77c\ubc18 \ucee8\ud14c\uc774\ub108<\/strong> (\uc774 \uc2a4\ud0dd\uc740 swarm service \uac00 \uc544\ub2d8) \uc640 worker \uac00 \uc18c\ucf13\uc73c\ub85c \ub744\uc6b0\ub294 <code>pipeline_flow<\/code> \ucee8\ud14c\uc774\ub108\ub3c4 \ubd99\uc744 \uc218 \uc788\uc2b5\ub2c8\ub2e4.<\/p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"# on the manager\ndocker network create --driver overlay --attachable mlops\"><pre><span class=\"pl-c\"><span class=\"pl-c\">#<\/span> on the manager<\/span>\ndocker network create --driver overlay --attachable mlops<\/pre><\/div>\n<p dir=\"auto\">overlay network \ub294 \ub9e4\ub2c8\uc800\uc5d0\uc11c \uc0dd\uc131\ub418\uace0, worker \uc5d0\ub294 <strong>\ucee8\ud14c\uc774\ub108\uac00 \ucc98\uc74c attach \ub420 \ub54c<\/strong> \ub098\ud0c0\ub0a9\ub2c8\ub2e4 (\uadf8 \uc804\uc5d0\ub294 worker \uc758 <code>docker network ls<\/code> \uc5d0 \uc548 \ubcf4\uc774\ub294 \uac83\uc774 \uae30\ubcf8 \ub3d9\uc791). \uc0dd\uc131 \uc9c1\ud6c4 \ud655\uc778\uc740 \ub9e4\ub2c8\uc800\uc5d0\uc11c driver\u00b7scope \ub9cc \ubd05\ub2c8\ub2e4.<\/p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"# on the manager: confirm it is an overlay on the swarm scope\ndocker network ls | grep mlops        # DRIVER = overlay, SCOPE = swarm\"><pre><span class=\"pl-c\"><span class=\"pl-c\">#<\/span> on the manager: confirm it is an overlay on the swarm scope<\/span>\ndocker network ls <span class=\"pl-k\">|<\/span> grep mlops        <span class=\"pl-c\"><span class=\"pl-c\">#<\/span> DRIVER = overlay, SCOPE = swarm<\/span><\/pre><\/div>\n<p dir=\"auto\"><strong>\uad00\ud1b5 \ud14c\uc2a4\ud2b8<\/strong> \u2014 worker \uc5d0 \ud14c\uc2a4\ud2b8 \ucee8\ud14c\uc774\ub108\ub97c \ubd99\uc5ec \ub9e4\ub2c8\uc800\uc5d0\uc11c \uc774\ub984\uc73c\ub85c ping \ub418\uba74 \ud06c\ub85c\uc2a4\ud638\uc2a4\ud2b8 \ub370\uc774\ud130\ud50c\ub808\uc778\uc774 \uc815\uc0c1\uc785\ub2c8\ub2e4 (\uc774\uac8c \ud1b5\uacfc\ud574\uc57c overlay \ub97c \uc2e4\uc81c\ub85c \uc4f8 \uc218 \uc788\uc2b5\ub2c8\ub2e4).<\/p>\n<div class=\"highlight highlight-source-shell notranslate position-relative overflow-auto\" dir=\"auto\" data-snippet-clipboard-copy-content=\"# on a worker: attach a test container to the overlay\ndocker run -d --name t1 --network mlops nginx\n# on the manager: resolve + reach it by name across hosts\ndocker run --rm --network mlops busybox ping -c2 t1\n#   -&gt; replies =&gt; overlay OK.  timeout\/'context deadline exceeded' =&gt; a node is not LAN-native (e.g. Docker Desktop)\"><pre><span class=\"pl-c\"><span class=\"pl-c\">#<\/span> on a worker: attach a test container to the overlay<\/span>\ndocker run -d --name t1 --network mlops nginx\n<span class=\"pl-c\"><span class=\"pl-c\">#<\/span> on the manager: resolve + reach it by name across hosts<\/span>\ndocker run --rm --network mlops busybox ping -c2 t1\n<span class=\"pl-c\"><span class=\"pl-c\">#<\/span>   -&gt; replies =&gt; overlay OK.  timeout\/'context deadline exceeded' =&gt; a node is not LAN-native (e.g. Docker Desktop)<\/span><\/pre><\/div>\n<p dir=\"auto\">\uc131\uacf5\ud558\uba74 \uac01 compose \ub294 <code>mlops<\/code> \ub97c external network \ub85c \ucc38\uc870\ud558\uace0, \uc8fc\uc18c\ub97c LAN IP \ub300\uc2e0 <strong>\uc11c\ube44\uc2a4 \uc774\ub984<\/strong> (<code>prefect_server<\/code>\u00b7<code>minio<\/code>\u00b7<code>postgres<\/code>\u00b7<code>mlflow<\/code>) \uc73c\ub85c \ud1b5\uc77c\ud569\ub2c8\ub2e4.<\/p>\n<\/article><\/div><\/div><\/p>\n<div style='text-align:center' class='yasr-auto-insert-overall'><\/div><div style='text-align:center' class='yasr-auto-insert-visitor'><\/div>","protected":false},"excerpt":{"rendered":"<p>A bridge network named mlops is host-local, so containers on one machine find each other by service name while anything across machines needs the host&#8217;s LAN IP and a published port. A Swarm overlay network removes that split and makes names work everywhere, but only when every node is LAN-native Linux.<\/p>\n","protected":false},"author":4,"featured_media":7185,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"_kadence_starter_templates_imported_post":false,"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"_kad_post_classname":"","yasr_overall_rating":0,"yasr_post_is_review":"","yasr_auto_insert_disabled":"","yasr_review_type":"","fifu_image_url":"","fifu_image_alt":"","iawp_total_views":7,"footnotes":""},"categories":[451,10],"tags":[386],"class_list":["post-7184","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker-slug","category-software-slug","tag-github-hosted"],"yasr_visitor_votes":{"stars_attributes":{"read_only":false,"span_bottom":false},"number_of_votes":0,"sum_votes":0},"jetpack_featured_media_url":"https:\/\/ykim.synology.me\/wordpress\/wp-content\/uploads\/2026\/09\/green-apples-produce-bin-1.jpg","_links":{"self":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/comments?post=7184"}],"version-history":[{"count":2,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7184\/revisions"}],"predecessor-version":[{"id":7189,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/posts\/7184\/revisions\/7189"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/media\/7185"}],"wp:attachment":[{"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/media?parent=7184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/categories?post=7184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ykim.synology.me\/wordpress\/wp-json\/wp\/v2\/tags?post=7184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}