[{"data":1,"prerenderedAt":216},["ShallowReactive",2],{"term-v\u002Fvolume":3,"related-v\u002Fvolume":201},{"id":4,"title":5,"acronym":6,"body":7,"category":183,"description":184,"difficulty":185,"extension":186,"letter":187,"meta":188,"navigation":61,"path":189,"related":190,"seo":195,"sitemap":196,"stem":199,"subcategory":6,"__hash__":200},"terms\u002Fterms\u002Fv\u002Fvolume.md","Volume",null,{"type":8,"value":9,"toc":177},"minimark",[10,15,19,23,26,30,166,170,173],[11,12,14],"h2",{"id":13},"eli5-the-vibe-check","ELI5 — The Vibe Check",[16,17,18],"p",{},"A Volume is persistent storage attached to a container — because containers themselves are like tents: when you take them down, everything inside is gone. A volume is a storage drive you plug into the tent. When the tent comes down and goes back up, the data in the drive is still there.",[11,20,22],{"id":21},"real-talk","Real Talk",[16,24,25],{},"A volume is a persistent storage mechanism for containers that exists independently of the container lifecycle. In Docker, volumes are managed by the Docker daemon. In Kubernetes, PersistentVolumes (PV) and PersistentVolumeClaims (PVC) provide an abstraction over the underlying storage (EBS, NFS, etc.).",[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-yaml shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","# Docker volume mount\ndocker run -v my-volume:\u002Fdata my-app\n\n# Kubernetes PVC\napiVersion: v1\nkind: PersistentVolumeClaim\nmetadata:\n  name: db-storage\nspec:\n  accessModes: [ReadWriteOnce]\n  resources:\n    requests:\n      storage: 10Gi\n","yaml","",[38,39,40,49,56,63,69,83,94,103,114,122,139,147,155],"code",{"__ignoreMap":36},[41,42,45],"span",{"class":43,"line":44},"line",1,[41,46,48],{"class":47},"sHwdD","# Docker volume mount\n",[41,50,52],{"class":43,"line":51},2,[41,53,55],{"class":54},"sfazB","docker run -v my-volume:\u002Fdata my-app\n",[41,57,59],{"class":43,"line":58},3,[41,60,62],{"emptyLinePlaceholder":61},true,"\n",[41,64,66],{"class":43,"line":65},4,[41,67,68],{"class":47},"# Kubernetes PVC\n",[41,70,72,76,80],{"class":43,"line":71},5,[41,73,75],{"class":74},"swJcz","apiVersion",[41,77,79],{"class":78},"sMK4o",":",[41,81,82],{"class":54}," v1\n",[41,84,86,89,91],{"class":43,"line":85},6,[41,87,88],{"class":74},"kind",[41,90,79],{"class":78},[41,92,93],{"class":54}," PersistentVolumeClaim\n",[41,95,97,100],{"class":43,"line":96},7,[41,98,99],{"class":74},"metadata",[41,101,102],{"class":78},":\n",[41,104,106,109,111],{"class":43,"line":105},8,[41,107,108],{"class":74},"  name",[41,110,79],{"class":78},[41,112,113],{"class":54}," db-storage\n",[41,115,117,120],{"class":43,"line":116},9,[41,118,119],{"class":74},"spec",[41,121,102],{"class":78},[41,123,125,128,130,133,136],{"class":43,"line":124},10,[41,126,127],{"class":74},"  accessModes",[41,129,79],{"class":78},[41,131,132],{"class":78}," [",[41,134,135],{"class":54},"ReadWriteOnce",[41,137,138],{"class":78},"]\n",[41,140,142,145],{"class":43,"line":141},11,[41,143,144],{"class":74},"  resources",[41,146,102],{"class":78},[41,148,150,153],{"class":43,"line":149},12,[41,151,152],{"class":74},"    requests",[41,154,102],{"class":78},[41,156,158,161,163],{"class":43,"line":157},13,[41,159,160],{"class":74},"      storage",[41,162,79],{"class":78},[41,164,165],{"class":54}," 10Gi\n",[11,167,169],{"id":168},"when-youll-hear-this","When You'll Hear This",[16,171,172],{},"\"Mount a volume to persist the database between container restarts.\" \u002F \"The pod lost data because we didn't attach a volume.\"",[174,175,176],"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 .sfazB, html code.shiki .sfazB{--shiki-light:#91B859;--shiki-default:#C3E88D;--shiki-dark:#C3E88D}html pre.shiki code .swJcz, html code.shiki .swJcz{--shiki-light:#E53935;--shiki-default:#F07178;--shiki-dark:#F07178}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":178},[179,180,181,182],{"id":13,"depth":51,"text":14},{"id":21,"depth":51,"text":22},{"id":28,"depth":51,"text":29},{"id":168,"depth":51,"text":169},"cicd","A Volume is persistent storage attached to a container — because containers themselves are like tents: when you take them down, everything inside is gone.","intermediate","md","v",{},"\u002Fterms\u002Fv\u002Fvolume",[191,192,193,194],"Container","Docker","Kubernetes","Pod",{"title":5,"description":184},{"changefreq":197,"priority":198},"weekly",0.7,"terms\u002Fv\u002Fvolume","rxtp8DNh4BIhbI0E6rhn2De7lPWGv1WzAMlrFYtpOy4",[202,206,209,213],{"title":191,"path":203,"acronym":6,"category":183,"difficulty":204,"description":205},"\u002Fterms\u002Fc\u002Fcontainer","beginner","A container is a running instance of a Docker image — it's the lunchbox you made and actually opened to eat from.",{"title":192,"path":207,"acronym":6,"category":183,"difficulty":204,"description":208},"\u002Fterms\u002Fd\u002Fdocker","Docker is like a lunchbox for your app.",{"title":193,"path":210,"acronym":6,"category":183,"difficulty":211,"description":212},"\u002Fterms\u002Fk\u002Fkubernetes","advanced","Kubernetes is a robot manager for your containers.",{"title":194,"path":214,"acronym":6,"category":183,"difficulty":185,"description":215},"\u002Fterms\u002Fp\u002Fpod","A Pod is the smallest thing Kubernetes manages — it's like a tiny apartment that one or more containers share.",1776518323288]