[{"data":1,"prerenderedAt":167},["ShallowReactive",2],{"term-d\u002Fdocker":3,"related-d\u002Fdocker":150},{"id":4,"title":5,"acronym":6,"body":7,"category":131,"description":132,"difficulty":133,"extension":134,"letter":135,"meta":136,"navigation":91,"path":137,"related":138,"seo":144,"sitemap":145,"stem":148,"subcategory":6,"__hash__":149},"terms\u002Fterms\u002Fd\u002Fdocker.md","Docker",null,{"type":8,"value":9,"toc":125},"minimark",[10,15,19,23,26,30,114,118,121],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"Docker is like a lunchbox for your app. Instead of saying 'it works on my computer,' you pack your app, all its dependencies, and exact settings into a container (lunchbox). The lunchbox runs the same on your laptop, staging, and production. No more 'but it worked on my machine!'",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"Docker is a platform for building, shipping, and running applications in containers — lightweight, portable, self-contained units that package code with all its dependencies and runtime environment. Containers share the host OS kernel but are isolated from each other, making them faster and more efficient than VMs.",[11,27,29],{"id":28},"show-me-the-code","Show Me The Code",[31,32,37],"pre",{"className":33,"code":34,"language":35,"meta":36,"style":36},"language-bash shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Build and run a Docker container\ndocker build -t my-app .\ndocker run -p 3000:3000 my-app\n\n# Or run a published image\ndocker run -p 80:80 nginx\n","bash","",[38,39,40,49,69,86,93,99],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sHwdD","# Build and run a Docker container\n",[41,50,52,56,60,63,66],{"class":43,"line":51},2,[41,53,55],{"class":54},"sBMFI","docker",[41,57,59],{"class":58},"sfazB"," build",[41,61,62],{"class":58}," -t",[41,64,65],{"class":58}," my-app",[41,67,68],{"class":58}," .\n",[41,70,72,74,77,80,83],{"class":43,"line":71},3,[41,73,55],{"class":54},[41,75,76],{"class":58}," run",[41,78,79],{"class":58}," -p",[41,81,82],{"class":58}," 3000:3000",[41,84,85],{"class":58}," my-app\n",[41,87,89],{"class":43,"line":88},4,[41,90,92],{"emptyLinePlaceholder":91},true,"\n",[41,94,96],{"class":43,"line":95},5,[41,97,98],{"class":47},"# Or run a published image\n",[41,100,102,104,106,108,111],{"class":43,"line":101},6,[41,103,55],{"class":54},[41,105,76],{"class":58},[41,107,79],{"class":58},[41,109,110],{"class":58}," 80:80",[41,112,113],{"class":58}," nginx\n",[11,115,117],{"id":116},"when-youll-hear-this","When You'll Hear This",[16,119,120],{},"\"Dockerize the app so it deploys the same everywhere.\" \u002F \"The Docker container is failing to start — check the logs.\"",[122,123,124],"style",{},"html pre.shiki code .sHwdD, html code.shiki .sHwdD{--shiki-light:#90A4AE;--shiki-light-font-style:italic;--shiki-default:#546E7A;--shiki-default-font-style:italic;--shiki-dark:#676E95;--shiki-dark-font-style:italic}html pre.shiki code .sBMFI, html code.shiki .sBMFI{--shiki-light:#E2931D;--shiki-default:#FFCB6B;--shiki-dark:#FFCB6B}html pre.shiki code .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}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":36,"searchDepth":51,"depth":51,"links":126},[127,128,129,130],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":116,"depth":51,"text":117},"cicd","Docker is like a lunchbox for your app.","beginner","md","d",{},"\u002Fterms\u002Fd\u002Fdocker",[139,140,141,142,143],"Container","Image","Dockerfile","Docker Compose","Kubernetes",{"title":5,"description":132},{"changefreq":146,"priority":147},"weekly",0.7,"terms\u002Fd\u002Fdocker","QBR8AhyZ_zBFibjDVjs1Ng8gz8osJbrsyLQYOoNH2oI",[151,154,157,160,163],{"title":139,"path":152,"acronym":6,"category":131,"difficulty":133,"description":153},"\u002Fterms\u002Fc\u002Fcontainer","A container is a running instance of a Docker image — it's the lunchbox you made and actually opened to eat from.",{"title":142,"path":155,"acronym":6,"category":131,"difficulty":133,"description":156},"\u002Fterms\u002Fd\u002Fdocker-compose","Docker Compose is a tool for running multiple containers together as a team. Your app needs a web server, a database, and a cache?",{"title":141,"path":158,"acronym":6,"category":131,"difficulty":133,"description":159},"\u002Fterms\u002Fd\u002Fdockerfile","A Dockerfile is the recipe for building a Docker image.",{"title":140,"path":161,"acronym":6,"category":131,"difficulty":133,"description":162},"\u002Fterms\u002Fi\u002Fimage","A Docker image is the blueprint or template for a container. It's like a frozen snapshot of your app and everything it needs to run.",{"title":143,"path":164,"acronym":6,"category":131,"difficulty":165,"description":166},"\u002Fterms\u002Fk\u002Fkubernetes","advanced","Kubernetes is a robot manager for your containers.",1776518249442]