{"id":3451,"date":"2025-11-13T10:15:20","date_gmt":"2025-11-13T03:15:20","guid":{"rendered":"https:\/\/portal-atlasx.cdg.co.th\/home\/?post_type=docs&#038;p=3451"},"modified":"2025-11-13T10:16:33","modified_gmt":"2025-11-13T03:16:33","slug":"run-container","status":"publish","type":"docs","link":"https:\/\/portal-atlasx.cdg.co.th\/home\/docs\/atlasx-container\/developing\/run-container\/","title":{"rendered":"Run Container"},"content":{"rendered":"\n<h1 class=\"wp-block-heading\" id=\"run-container\">Run Container<\/h1>\n\n\n\n<p>\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23 run container \u0e08\u0e32\u0e01 container image \u0e0b\u0e36\u0e48\u0e07\u0e40\u0e2b\u0e21\u0e32\u0e30\u0e2a\u0e33\u0e2b\u0e23\u0e31\u0e1a\u0e01\u0e32\u0e23\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e02\u0e2d\u0e07 image \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e17\u0e33\u0e01\u0e32\u0e23 build \u0e40\u0e2d\u0e32\u0e44\u0e27\u0e49 \u0e2b\u0e23\u0e37\u0e2d\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23 run application \u0e15\u0e48\u0e32\u0e07\u0e46 \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e07\u0e32\u0e19 \u0e1a\u0e19\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07\u0e02\u0e2d\u0e07\u0e40\u0e23\u0e32\u0e44\u0e14\u0e49\u0e2d\u0e22\u0e48\u0e32\u0e07\u0e07\u0e48\u0e32\u0e22\u0e14\u0e32\u0e22<\/p>\n\n\n\n<blockquote class=\"wp-block-quote is-layout-flow wp-block-quote-is-layout-flow\">\n<h5 class=\"wp-block-heading\">Note<\/h5>\n\n\n\n<p><\/p>\n\n\n\n<p>\u26a0\ufe0f \u0e43\u0e19\u0e01\u0e32\u0e23 run container \u0e43\u0e19\u0e23\u0e39\u0e1b\u0e41\u0e1a\u0e1a\u0e19\u0e35\u0e49<strong>\u0e44\u0e21\u0e48\u0e41\u0e19\u0e30\u0e19\u0e33<\/strong>\u0e43\u0e2b\u0e49\u0e23\u0e31\u0e19\u0e1a\u0e19 production \u0e42\u0e14\u0e22\u0e40\u0e14\u0e47\u0e14\u0e02\u0e32\u0e14 \u0e22\u0e01\u0e40\u0e27\u0e49\u0e19\u0e08\u0e30\u0e40\u0e1b\u0e47\u0e19\u0e01\u0e32\u0e23\u0e17\u0e14\u0e2a\u0e2d\u0e1a\u0e01\u0e32\u0e23\u0e17\u0e33\u0e07\u0e32\u0e19\u0e40\u0e1e\u0e35\u0e22\u0e07\u0e0a\u0e31\u0e48\u0e27\u0e04\u0e23\u0e32\u0e27<\/p>\n<\/blockquote>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"run-atlasx-web-application\">Run AtlasX Web Application<\/h2>\n\n\n\n<p>\u0e43\u0e19\u0e01\u0e32\u0e23 run container \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19 AtlasX Web Application \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e44\u0e14\u0e49\u0e42\u0e14\u0e22\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>docker run --name &lt;CONTAINER_NAME> -p &lt;PORT>:8080 -d &lt;IMAGE-NAME>:&lt;TAG><\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">docker<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">run<\/span><span style=\"color: #000000\"> --<\/span><span style=\"color: #001080\">name<\/span><span style=\"color: #000000\"> &lt;<\/span><span style=\"color: #0070C1\">CONTAINER_NAME<\/span><span style=\"color: #000000\">&gt; -<\/span><span style=\"color: #001080\">p<\/span><span style=\"color: #000000\"> &lt;<\/span><span style=\"color: #0070C1\">PORT<\/span><span style=\"color: #000000\">&gt;:<\/span><span style=\"color: #098658\">8080<\/span><span style=\"color: #000000\"> -<\/span><span style=\"color: #001080\">d<\/span><span style=\"color: #000000\"> &lt;<\/span><span style=\"color: #0070C1\">IMAGE<\/span><span style=\"color: #000000\">-<\/span><span style=\"color: #0070C1\">NAME<\/span><span style=\"color: #000000\">&gt;:<\/span><span style=\"color: #800000\">&lt;<\/span><span style=\"color: #267F99\">TAG<\/span><span style=\"color: #800000\">&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e42\u0e14\u0e22\u0e17\u0e35\u0e48<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>CONTAINER_NAME<\/code>\u00a0\u0e04\u0e37\u0e2d \u0e0a\u0e37\u0e48\u0e2d\u0e02\u0e2d\u0e07 container<\/li>\n\n\n\n<li><code>PORT<\/code>\u00a0\u0e04\u0e37\u0e2d port \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49 Docker publish port \u0e02\u0e2d\u0e07 container \u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e17\u0e35\u0e48\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Host<\/li>\n\n\n\n<li><code>IMAGE-NAME<\/code>\u00a0\u0e04\u0e37\u0e2d \u0e0a\u0e37\u0e48\u0e2d\u0e02\u0e2d\u0e07 image \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 run<\/li>\n\n\n\n<li><code>TAG<\/code>\u00a0\u0e04\u0e37\u0e2d tag \u0e02\u0e2d\u0e07 image \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 run<\/li>\n<\/ul>\n\n\n\n<p>\u0e40\u0e0a\u0e48\u0e19<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>docker run --name my-atlasx-webapp -p 8080:8080 -d atlasx-webapp:1.0.0<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">docker<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">run<\/span><span style=\"color: #000000\"> --<\/span><span style=\"color: #001080\">name<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">my<\/span><span style=\"color: #000000\">-<\/span><span style=\"color: #001080\">atlasx<\/span><span style=\"color: #000000\">-<\/span><span style=\"color: #001080\">webapp<\/span><span style=\"color: #000000\"> -<\/span><span style=\"color: #001080\">p<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #098658\">8080<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">8080<\/span><span style=\"color: #000000\"> -<\/span><span style=\"color: #001080\">d<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">atlasx<\/span><span style=\"color: #000000\">-webapp:<\/span><span style=\"color: #098658\">1.0<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #098658\">0<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e40\u0e02\u0e49\u0e32 Web Application \u0e1c\u0e48\u0e32\u0e19 browser \u0e14\u0e49\u0e27\u0e22 url&nbsp;<a href=\"http:\/\/localhost:8080\/\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/localhost:8080<\/a><\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity is-style-wide\"\/>\n\n\n\n<h2 class=\"wp-block-heading\" id=\"run-atlasx-web-service\">Run AtlasX Web Service<\/h2>\n\n\n\n<p>\u0e43\u0e19\u0e01\u0e32\u0e23 run container \u0e17\u0e35\u0e48\u0e40\u0e1b\u0e47\u0e19 AtlasX Web Service \u0e2a\u0e32\u0e21\u0e32\u0e23\u0e16\u0e17\u0e33\u0e44\u0e14\u0e49\u0e42\u0e14\u0e22\u0e01\u0e32\u0e23\u0e43\u0e0a\u0e49\u0e04\u0e33\u0e2a\u0e31\u0e48\u0e07<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>docker run --name &lt;CONTAINER_NAME> -p &lt;PORT>:8080 -d &lt;IMAGE-NAME>:&lt;TAG><\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">docker<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">run<\/span><span style=\"color: #000000\"> --<\/span><span style=\"color: #001080\">name<\/span><span style=\"color: #000000\"> &lt;<\/span><span style=\"color: #0070C1\">CONTAINER_NAME<\/span><span style=\"color: #000000\">&gt; -<\/span><span style=\"color: #001080\">p<\/span><span style=\"color: #000000\"> &lt;<\/span><span style=\"color: #0070C1\">PORT<\/span><span style=\"color: #000000\">&gt;:<\/span><span style=\"color: #098658\">8080<\/span><span style=\"color: #000000\"> -<\/span><span style=\"color: #001080\">d<\/span><span style=\"color: #000000\"> &lt;<\/span><span style=\"color: #0070C1\">IMAGE<\/span><span style=\"color: #000000\">-<\/span><span style=\"color: #0070C1\">NAME<\/span><span style=\"color: #000000\">&gt;:<\/span><span style=\"color: #800000\">&lt;<\/span><span style=\"color: #267F99\">TAG<\/span><span style=\"color: #800000\">&gt;<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e42\u0e14\u0e22\u0e17\u0e35\u0e48<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><code>CONTAINER_NAME<\/code>\u00a0\u0e04\u0e37\u0e2d \u0e0a\u0e37\u0e48\u0e2d\u0e02\u0e2d\u0e07 container<\/li>\n\n\n\n<li><code>PORT<\/code>\u00a0\u0e04\u0e37\u0e2d port \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23\u0e43\u0e2b\u0e49 Docker publish port \u0e02\u0e2d\u0e07 container \u0e2d\u0e2d\u0e01\u0e21\u0e32\u0e17\u0e35\u0e48\u0e40\u0e04\u0e23\u0e37\u0e48\u0e2d\u0e07 Host<\/li>\n\n\n\n<li><code>IMAGE-NAME<\/code>\u00a0\u0e04\u0e37\u0e2d \u0e0a\u0e37\u0e48\u0e2d\u0e02\u0e2d\u0e07 image \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 run<\/li>\n\n\n\n<li><code>TAG<\/code>\u00a0\u0e04\u0e37\u0e2d tag \u0e02\u0e2d\u0e07 image \u0e17\u0e35\u0e48\u0e40\u0e23\u0e32\u0e15\u0e49\u0e2d\u0e07\u0e01\u0e32\u0e23 run<\/li>\n<\/ul>\n\n\n\n<p>\u0e40\u0e0a\u0e48\u0e19<\/p>\n\n\n\n<div class=\"wp-block-kevinbatdorf-code-block-pro\" data-code-block-pro-font-family=\"Code-Pro-Fira-Code\" style=\"font-size:.875rem;font-family:Code-Pro-Fira-Code,ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;line-height:1.25rem;--cbp-tab-width:2;tab-size:var(--cbp-tab-width, 2)\"><span role=\"button\" tabindex=\"0\" style=\"color:#000000;display:none\" aria-label=\"Copy\" class=\"code-block-pro-copy-button\"><pre class=\"code-block-pro-copy-button-pre\" aria-hidden=\"true\"><textarea class=\"code-block-pro-copy-button-textarea\" tabindex=\"-1\" aria-hidden=\"true\" readonly>docker run --name my-atlasx-webservice -p 5000:8080 -d atlasx-webservice:1.0.0<\/textarea><\/pre><svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" style=\"width:24px;height:24px\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" stroke-width=\"2\"><path class=\"with-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M4.5 12.75l6 6 9-13.5\"><\/path><path class=\"without-check\" stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M16.5 8.25V6a2.25 2.25 0 00-2.25-2.25H6A2.25 2.25 0 003.75 6v8.25A2.25 2.25 0 006 16.5h2.25m8.25-8.25H18a2.25 2.25 0 012.25 2.25V18A2.25 2.25 0 0118 20.25h-7.5A2.25 2.25 0 018.25 18v-1.5m8.25-8.25h-6a2.25 2.25 0 00-2.25 2.25v6\"><\/path><\/svg><\/span><pre class=\"shiki light-plus\" style=\"background-color: #FFFFFF\" tabindex=\"0\"><code><span class=\"line\"><span style=\"color: #001080\">docker<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">run<\/span><span style=\"color: #000000\"> --<\/span><span style=\"color: #001080\">name<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">my<\/span><span style=\"color: #000000\">-<\/span><span style=\"color: #001080\">atlasx<\/span><span style=\"color: #000000\">-<\/span><span style=\"color: #001080\">webservice<\/span><span style=\"color: #000000\"> -<\/span><span style=\"color: #001080\">p<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #098658\">5000<\/span><span style=\"color: #000000\">:<\/span><span style=\"color: #098658\">8080<\/span><span style=\"color: #000000\"> -<\/span><span style=\"color: #001080\">d<\/span><span style=\"color: #000000\"> <\/span><span style=\"color: #001080\">atlasx<\/span><span style=\"color: #000000\">-webservice:<\/span><span style=\"color: #098658\">1.0<\/span><span style=\"color: #000000\">.<\/span><span style=\"color: #098658\">0<\/span><\/span><\/code><\/pre><\/div>\n\n\n\n<p>\u0e17\u0e14\u0e25\u0e2d\u0e07\u0e40\u0e02\u0e49\u0e32 Web Service \u0e1c\u0e48\u0e32\u0e19 browser \u0e14\u0e49\u0e27\u0e22 url&nbsp;<a href=\"http:\/\/localhost:5000\/AppLogin\" target=\"_blank\" rel=\"noreferrer noopener\">http:\/\/localhost:5000\/AppLogin<\/a><\/p>\n","protected":false},"featured_media":0,"parent":3444,"menu_order":1,"comment_status":"closed","ping_status":"closed","template":"","meta":{"nav_title":"","positive":"","negative":"","footnotes":""},"docs_category":[],"class_list":["post-3451","docs","type-docs","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/3451","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/types\/docs"}],"replies":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/comments?post=3451"}],"version-history":[{"count":1,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/3451\/revisions"}],"predecessor-version":[{"id":3452,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/3451\/revisions\/3452"}],"up":[{"embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs\/3444"}],"wp:attachment":[{"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/media?parent=3451"}],"wp:term":[{"taxonomy":"docs_category","embeddable":true,"href":"https:\/\/portal-atlasx.cdg.co.th\/home\/wp-json\/wp\/v2\/docs_category?post=3451"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}