[{"data":1,"prerenderedAt":155},["ShallowReactive",2],{"post:disable-auto-restart-on-container":3},{"id":4,"title":5,"body":6,"date":143,"description":144,"draft":145,"extension":146,"meta":147,"navigation":148,"path":149,"seo":150,"stem":151,"tags":152,"__hash__":154},"posts\u002Fposts\u002Fdisable-auto-restart-on-container.md","TIL: How To Disable Auto-Restart on Docker Containers",{"type":7,"value":8,"toc":141},"minimark",[9,18,101,118,137],[10,11,12,13,17],"p",{},"So I've had this docker container hanging around my Ubuntu machine since I first developed\u002Fstarted it. It's there whenever I run ",[14,15,16],"code",{},"docker ps",", and I finally decided I need to stop this useless container from hogging my machine's memory. (After three months!)",[19,20,25],"pre",{"className":21,"code":22,"language":23,"meta":24,"style":24},"language-bash shiki shiki-themes github-light github-dark","$ docker ps\nCONTAINER ID    IMAGE                   ...  CREATED         STATUS          NAMES\n2c23e77e395e    dockette\u002Fadminer:full   ...  3 months ago    Up 24 hours     boltondocker_adminer_1\n","bash","",[14,26,27,43,67],{"__ignoreMap":24},[28,29,32,36,40],"span",{"class":30,"line":31},"line",1,[28,33,35],{"class":34},"sScJk","$",[28,37,39],{"class":38},"sZZnC"," docker",[28,41,42],{"class":38}," ps\n",[28,44,46,49,52,55,58,61,64],{"class":30,"line":45},2,[28,47,48],{"class":34},"CONTAINER",[28,50,51],{"class":38}," ID",[28,53,54],{"class":38},"    IMAGE",[28,56,57],{"class":38},"                   ...",[28,59,60],{"class":38},"  CREATED",[28,62,63],{"class":38},"         STATUS",[28,65,66],{"class":38},"          NAMES\n",[28,68,70,73,76,79,83,86,89,92,95,98],{"class":30,"line":69},3,[28,71,72],{"class":34},"2c23e77e395e",[28,74,75],{"class":38},"    dockette\u002Fadminer:full",[28,77,78],{"class":38},"   ...",[28,80,82],{"class":81},"sj4cs","  3",[28,84,85],{"class":38}," months",[28,87,88],{"class":38}," ago",[28,90,91],{"class":38},"    Up",[28,93,94],{"class":81}," 24",[28,96,97],{"class":38}," hours",[28,99,100],{"class":38},"     boltondocker_adminer_1\n",[10,102,103,104,111,112,117],{},"Turns out ",[105,106,110],"a",{"href":107,"rel":108},"https:\u002F\u002Fstackoverflow.com\u002Fquestions\u002F37599128\u002Fdocker-how-do-you-disable-auto-restart-on-a-container",[109],"nofollow","it's pretty easy to disable auto-restart"," - thanks ",[105,113,116],{"href":114,"rel":115},"https:\u002F\u002Fstackoverflow.com\u002Fusers\u002F911945\u002Fanton-tarasenko",[109],"Anton Tarasenko","!",[19,119,121],{"className":21,"code":120,"language":23,"meta":24,"style":24},"docker update --restart=no boltondocker_adminer\n",[14,122,123],{"__ignoreMap":24},[28,124,125,128,131,134],{"class":30,"line":31},[28,126,127],{"class":34},"docker",[28,129,130],{"class":38}," update",[28,132,133],{"class":81}," --restart=no",[28,135,136],{"class":38}," boltondocker_adminer\n",[138,139,140],"style",{},"html pre.shiki code .sScJk, html code.shiki .sScJk{--shiki-default:#6F42C1;--shiki-dark:#B392F0}html pre.shiki code .sZZnC, html code.shiki .sZZnC{--shiki-default:#032F62;--shiki-dark:#9ECBFF}html pre.shiki code .sj4cs, html code.shiki .sj4cs{--shiki-default:#005CC5;--shiki-dark:#79B8FF}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":24,"searchDepth":45,"depth":45,"links":142},[],"2019-02-07T17:54:20-05:00","So I've had this docker container hanging around my Ubuntu machine since I first developed\u002Fstarted it. It's there whenever I run docker ps, and I finally decided I need to stop this useless container from hogging my machine's memory. (After three months!)",false,"md",{},true,"\u002Fposts\u002Fdisable-auto-restart-on-container",{"title":5,"description":144},"posts\u002Fdisable-auto-restart-on-container",[127,153],"til","WYOOKAEbWAbrP1d6dfMunslT-UETTQLsKIaDe1kXpHA",1790471527980]