[{"data":1,"prerenderedAt":182},["ShallowReactive",2],{"term-c\u002Fcontainer":3,"related-c\u002Fcontainer":164},{"id":4,"title":5,"acronym":6,"body":7,"category":145,"description":146,"difficulty":147,"extension":148,"letter":149,"meta":150,"navigation":65,"path":151,"related":152,"seo":158,"sitemap":159,"stem":162,"subcategory":6,"__hash__":163},"terms\u002Fterms\u002Fc\u002Fcontainer.md","Container",null,{"type":8,"value":9,"toc":139},"minimark",[10,15,19,23,26,30,124,128,135],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"A container is a running instance of a Docker image — it's the lunchbox you made and actually opened to eat from. Your image is the recipe; a container is a prepared meal. You can run many containers from the same image at the same time, each one isolated from the others.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"A container is a runnable instance of a container image. Containers are isolated processes that share the host OS kernel but have their own filesystem, network, and process namespace. They are ephemeral by default — stopping a container discards any data not stored in volumes.",[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","# List running containers\ndocker ps\n\n# Execute a command in a running container\ndocker exec -it my-container bash\n\n# Stop and remove a container\ndocker stop my-container && docker rm my-container\n","bash","",[38,39,40,49,60,67,73,90,95,101],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sHwdD","# List running containers\n",[41,50,52,56],{"class":43,"line":51},2,[41,53,55],{"class":54},"sBMFI","docker",[41,57,59],{"class":58},"sfazB"," ps\n",[41,61,63],{"class":43,"line":62},3,[41,64,66],{"emptyLinePlaceholder":65},true,"\n",[41,68,70],{"class":43,"line":69},4,[41,71,72],{"class":47},"# Execute a command in a running container\n",[41,74,76,78,81,84,87],{"class":43,"line":75},5,[41,77,55],{"class":54},[41,79,80],{"class":58}," exec",[41,82,83],{"class":58}," -it",[41,85,86],{"class":58}," my-container",[41,88,89],{"class":58}," bash\n",[41,91,93],{"class":43,"line":92},6,[41,94,66],{"emptyLinePlaceholder":65},[41,96,98],{"class":43,"line":97},7,[41,99,100],{"class":47},"# Stop and remove a container\n",[41,102,104,106,109,111,115,118,121],{"class":43,"line":103},8,[41,105,55],{"class":54},[41,107,108],{"class":58}," stop",[41,110,86],{"class":58},[41,112,114],{"class":113},"sMK4o"," &&",[41,116,117],{"class":54}," docker",[41,119,120],{"class":58}," rm",[41,122,123],{"class":58}," my-container\n",[11,125,127],{"id":126},"when-youll-hear-this","When You'll Hear This",[16,129,130,131,134],{},"\"How many containers are running in prod right now?\" \u002F \"The container crashed — check the logs with ",[38,132,133],{},"docker logs",".\"",[136,137,138],"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 pre.shiki code .sMK4o, html code.shiki .sMK4o{--shiki-light:#39ADB5;--shiki-default:#89DDFF;--shiki-dark:#89DDFF}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":140},[141,142,143,144],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":126,"depth":51,"text":127},"cicd","A container is a running instance of a Docker image — it's the lunchbox you made and actually opened to eat from.","beginner","md","c",{},"\u002Fterms\u002Fc\u002Fcontainer",[153,154,155,156,157],"Docker","Image","Dockerfile","Kubernetes","Pod",{"title":5,"description":146},{"changefreq":160,"priority":161},"weekly",0.7,"terms\u002Fc\u002Fcontainer","4nToUvKgqV1-oJKzMXTwpoc6eL-VzWMwD6DfmPKn6II",[165,168,171,174,178],{"title":153,"path":166,"acronym":6,"category":145,"difficulty":147,"description":167},"\u002Fterms\u002Fd\u002Fdocker","Docker is like a lunchbox for your app.",{"title":155,"path":169,"acronym":6,"category":145,"difficulty":147,"description":170},"\u002Fterms\u002Fd\u002Fdockerfile","A Dockerfile is the recipe for building a Docker image.",{"title":154,"path":172,"acronym":6,"category":145,"difficulty":147,"description":173},"\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":156,"path":175,"acronym":6,"category":145,"difficulty":176,"description":177},"\u002Fterms\u002Fk\u002Fkubernetes","advanced","Kubernetes is a robot manager for your containers.",{"title":157,"path":179,"acronym":6,"category":145,"difficulty":180,"description":181},"\u002Fterms\u002Fp\u002Fpod","intermediate","A Pod is the smallest thing Kubernetes manages — it's like a tiny apartment that one or more containers share.",1776518269041]