[{"data":1,"prerenderedAt":163},["ShallowReactive",2],{"course-docker-basics":3,"lesson-docker-basics-images":81},{"course":4,"lessons":59},{"id":5,"title":6,"body":7,"date":41,"description":42,"draft":43,"duration":44,"extension":45,"level":46,"meta":47,"navigation":48,"ogTitle":49,"path":50,"pin":43,"seo":51,"sitemap":52,"stem":53,"tags":54,"updated":57,"__hash__":58},"courses\u002Fcourses\u002Fdocker-basics\u002Findex.md","พื้นฐาน Docker สำหรับคนเริ่มต้น",{"type":8,"value":9,"toc":36},"minimark",[10,14,18],[11,12,13],"p",{},"คอร์สนี้พาไปตั้งแต่ติดตั้ง Docker, ใช้ image และเก็บข้อมูลไว้ใน volume\nจบคอร์สแล้วจะรัน service ของตัวเองใน container ได้",[15,16,17],"h2",{"id":17},"ต้องมีอะไรก่อนเริ่ม",[19,20,21,25],"ul",{},[22,23,24],"li",{},"เครื่อง Linux, macOS หรือ Windows ที่ติดตั้งโปรแกรมได้",[22,26,27,28,32,33],{},"ใช้ terminal พื้นฐานได้ เช่น ",[29,30,31],"code",{},"cd"," และ ",[29,34,35],{},"ls",{"title":37,"searchDepth":38,"depth":38,"links":39},"",2,[40],{"id":17,"depth":38,"text":17},"2026-11-24","เรียน Docker ตั้งแต่ติดตั้งจนรัน container ที่เก็บข้อมูลได้จริง ใช้เวลาไม่ถึงชั่วโมง",false,"45 นาที","md","beginner",{},true,"Docker Basics","\u002Fcourses\u002Fdocker-basics",{"title":6,"description":42},{"loc":50,"lastmod":41},"courses\u002Fdocker-basics\u002Findex",[55,56],"Development","Homelab",null,"AZZcKA_DB3ZHfcQkYu5WZ09fYxzhnTchDnLS2YUF_Bo",[60,67,74],{"path":61,"title":62,"description":63,"duration":64,"order":65,"slug":66},"\u002Fcourses\u002Fdocker-basics\u002Finstall","ติดตั้ง Docker","ติดตั้ง Docker Engine แล้วเช็กว่าใช้งานได้ด้วย container แรก","10 นาที","1","install",{"path":68,"title":69,"description":70,"duration":71,"order":72,"slug":73},"\u002Fcourses\u002Fdocker-basics\u002Fimages","Image กับ Container","ดึง image มาใช้ รัน container และดูว่าตอนนี้มีอะไรรันอยู่","15 นาที","2","images",{"path":75,"title":76,"description":77,"duration":78,"order":79,"slug":80},"\u002Fcourses\u002Fdocker-basics\u002Fvolumes","เก็บข้อมูลด้วย Volume","ใช้ volume ให้ข้อมูลอยู่รอดแม้ลบ container ทิ้ง","20 นาที","3","volumes",{"id":82,"title":69,"body":83,"description":70,"draft":43,"duration":71,"extension":45,"meta":158,"navigation":48,"ogTitle":57,"order":72,"path":68,"seo":159,"sitemap":160,"stem":161,"updated":57,"__hash__":162},"lessons\u002Fcourses\u002Fdocker-basics\u002Fimages.md",{"type":8,"value":84,"toc":156},[85,88,145,152],[11,86,87],{},"Image คือแม่แบบ ส่วน container คือโปรแกรมที่รันจาก image นั้น",[89,90,94],"pre",{"className":91,"code":92,"language":93,"meta":37,"style":37},"language-bash shiki shiki-themes material-theme-lighter one-dark-pro github-dark","docker pull nginx:alpine\ndocker run -d --name web -p 8080:80 nginx:alpine\ndocker ps\n","bash",[29,95,96,112,137],{"__ignoreMap":37},[97,98,101,105,109],"span",{"class":99,"line":100},"line",1,[97,102,104],{"class":103},"sosa_","docker",[97,106,108],{"class":107},"sAlJX"," pull",[97,110,111],{"class":107}," nginx:alpine\n",[97,113,114,116,119,123,126,129,132,135],{"class":99,"line":38},[97,115,104],{"class":103},[97,117,118],{"class":107}," run",[97,120,122],{"class":121},"sEoV_"," -d",[97,124,125],{"class":121}," --name",[97,127,128],{"class":107}," web",[97,130,131],{"class":121}," -p",[97,133,134],{"class":107}," 8080:80",[97,136,111],{"class":107},[97,138,140,142],{"class":99,"line":139},3,[97,141,104],{"class":103},[97,143,144],{"class":107}," ps\n",[11,146,147,148,151],{},"เปิด ",[29,149,150],{},"http:\u002F\u002Flocalhost:8080"," จะเห็นหน้าแรกของ nginx",[153,154,155],"style",{},"html pre.shiki code .sosa_, html code.shiki .sosa_{--shiki-light:#E2931D;--shiki-default:#61AFEF;--shiki-dark:#B392F0}html pre.shiki code .sAlJX, html code.shiki .sAlJX{--shiki-light:#91B859;--shiki-default:#98C379;--shiki-dark:#9ECBFF}html pre.shiki code .sEoV_, html code.shiki .sEoV_{--shiki-light:#91B859;--shiki-default:#D19A66;--shiki-dark:#79B8FF}html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":37,"searchDepth":38,"depth":38,"links":157},[],{},{"title":69,"description":70},{"loc":68},"courses\u002Fdocker-basics\u002Fimages","IzmC5asfUg8SrpRM2zmpS3ut6LWB3YBtYrGTdGcSH3M",1795487631738]