{"id":3333,"date":"2021-10-13T15:44:42","date_gmt":"2021-10-13T13:44:42","guid":{"rendered":"https:\/\/www.robinglauser.ch\/blog\/?p=3333"},"modified":"2021-12-01T12:52:15","modified_gmt":"2021-12-01T10:52:15","slug":"changing-docker-container-folder-on-windows-server","status":"publish","type":"post","link":"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/","title":{"rendered":"Changing Docker Container Folder on Windows Server"},"content":{"rendered":"<p>First stop your docker service<\/p>\n<pre>stop-service docker<\/pre>\n<p>Create a new folder called daemon.json in the folder C:\\ProgramData\\docker\\config and then put the following content inside, to set a new folder for your images.<\/p>\n<pre>{\r\n   \"data-root\": \"d:\\\\dockerdata\"\r\n}<\/pre>\n<p>Then restart the Docker Service.<\/p>\n<pre> Restart-Service Docker<\/pre>\n<p>The images won&#8217;t be transferred to the new folder, so you&#8217;ll have to do that afterwards manually.<\/p>\n","protected":false},"excerpt":{"rendered":"<p class=\"excerpt\">First stop your docker service stop-service docker Create a new folder called daemon.json in the folder C:\\ProgramData\\docker\\config and then put the following content inside, to set a new folder for your images. { &#8220;data-root&#8221;: &#8220;d:\\\\dockerdata&#8221; } Then restart the Docker Service. Restart-Service Docker The images won&#8217;t be transferred to the new folder, so you&#8217;ll have to do that afterwards manually.<\/p>\n","protected":false},"author":2,"featured_media":3349,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"inline_featured_image":false,"footnotes":""},"categories":[45],"tags":[],"class_list":["post-3333","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-development"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.2 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Changing Docker Container Folder on Windows Server - Robin Glauser<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Changing Docker Container Folder on Windows Server - Robin Glauser\" \/>\n<meta property=\"og:description\" content=\"First stop your docker service stop-service docker Create a new folder called daemon.json in the folder C:ProgramDatadockerconfig and then put the following content inside, to set a new folder for your images. { &quot;data-root&quot;: &quot;d:\\dockerdata&quot; } Then restart the Docker Service. Restart-Service Docker The images won&#8217;t be transferred to the new folder, so you&#8217;ll have to do that afterwards manually.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/\" \/>\n<meta property=\"og:site_name\" content=\"Robin Glauser\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-13T13:44:42+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-12-01T10:52:15+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2021\/10\/todd-cravens-QnBrjY-nFUs-unsplash-1.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"797\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Robin Glauser\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@robinglauser\" \/>\n<meta name=\"twitter:site\" content=\"@robinglauser\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Robin Glauser\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/\"},\"author\":{\"name\":\"Robin Glauser\",\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19\"},\"headline\":\"Changing Docker Container Folder on Windows Server\",\"datePublished\":\"2021-10-13T13:44:42+00:00\",\"dateModified\":\"2021-12-01T10:52:15+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/\"},\"wordCount\":65,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19\"},\"image\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2021\/10\/todd-cravens-QnBrjY-nFUs-unsplash-1.jpg\",\"articleSection\":[\"Development\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/\",\"url\":\"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/\",\"name\":\"Changing Docker Container Folder on Windows Server - Robin Glauser\",\"isPartOf\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2021\/10\/todd-cravens-QnBrjY-nFUs-unsplash-1.jpg\",\"datePublished\":\"2021-10-13T13:44:42+00:00\",\"dateModified\":\"2021-12-01T10:52:15+00:00\",\"breadcrumb\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/#primaryimage\",\"url\":\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2021\/10\/todd-cravens-QnBrjY-nFUs-unsplash-1.jpg\",\"contentUrl\":\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2021\/10\/todd-cravens-QnBrjY-nFUs-unsplash-1.jpg\",\"width\":1200,\"height\":797},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/www.robinglauser.ch\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Changing Docker Container Folder on Windows Server\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/#website\",\"url\":\"https:\/\/www.robinglauser.ch\/blog\/\",\"name\":\"Robin Glauser\",\"description\":\"My Blog about Development, Design and my random thoughts.\",\"publisher\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.robinglauser.ch\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19\",\"name\":\"Robin Glauser\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg\",\"url\":\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg\",\"contentUrl\":\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg\",\"width\":800,\"height\":530,\"caption\":\"Robin Glauser\"},\"logo\":{\"@id\":\"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg\"},\"description\":\"I'm a web developer.\",\"sameAs\":[\"https:\/\/www.robinglauser.ch\",\"https:\/\/www.instagram.com\/robinglauser\/\",\"https:\/\/x.com\/robinglauser\"],\"url\":\"https:\/\/www.robinglauser.ch\/blog\/author\/robin\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Changing Docker Container Folder on Windows Server - Robin Glauser","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/","og_locale":"en_US","og_type":"article","og_title":"Changing Docker Container Folder on Windows Server - Robin Glauser","og_description":"First stop your docker service stop-service docker Create a new folder called daemon.json in the folder C:ProgramDatadockerconfig and then put the following content inside, to set a new folder for your images. { \"data-root\": \"d:\\dockerdata\" } Then restart the Docker Service. Restart-Service Docker The images won&#8217;t be transferred to the new folder, so you&#8217;ll have to do that afterwards manually.","og_url":"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/","og_site_name":"Robin Glauser","article_published_time":"2021-10-13T13:44:42+00:00","article_modified_time":"2021-12-01T10:52:15+00:00","og_image":[{"width":1200,"height":797,"url":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2021\/10\/todd-cravens-QnBrjY-nFUs-unsplash-1.jpg","type":"image\/jpeg"}],"author":"Robin Glauser","twitter_card":"summary_large_image","twitter_creator":"@robinglauser","twitter_site":"@robinglauser","twitter_misc":{"Written by":"Robin Glauser","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/#article","isPartOf":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/"},"author":{"name":"Robin Glauser","@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"headline":"Changing Docker Container Folder on Windows Server","datePublished":"2021-10-13T13:44:42+00:00","dateModified":"2021-12-01T10:52:15+00:00","mainEntityOfPage":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/"},"wordCount":65,"commentCount":0,"publisher":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"image":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2021\/10\/todd-cravens-QnBrjY-nFUs-unsplash-1.jpg","articleSection":["Development"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/","url":"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/","name":"Changing Docker Container Folder on Windows Server - Robin Glauser","isPartOf":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/#primaryimage"},"image":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/#primaryimage"},"thumbnailUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2021\/10\/todd-cravens-QnBrjY-nFUs-unsplash-1.jpg","datePublished":"2021-10-13T13:44:42+00:00","dateModified":"2021-12-01T10:52:15+00:00","breadcrumb":{"@id":"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/#primaryimage","url":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2021\/10\/todd-cravens-QnBrjY-nFUs-unsplash-1.jpg","contentUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2021\/10\/todd-cravens-QnBrjY-nFUs-unsplash-1.jpg","width":1200,"height":797},{"@type":"BreadcrumbList","@id":"https:\/\/www.robinglauser.ch\/blog\/2021\/10\/13\/changing-docker-container-folder-on-windows-server\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.robinglauser.ch\/blog\/"},{"@type":"ListItem","position":2,"name":"Changing Docker Container Folder on Windows Server"}]},{"@type":"WebSite","@id":"https:\/\/www.robinglauser.ch\/blog\/#website","url":"https:\/\/www.robinglauser.ch\/blog\/","name":"Robin Glauser","description":"My Blog about Development, Design and my random thoughts.","publisher":{"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.robinglauser.ch\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.robinglauser.ch\/blog\/#\/schema\/person\/e1a94504a6ff5171fa13670932514b19","name":"Robin Glauser","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","url":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","contentUrl":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg","width":800,"height":530,"caption":"Robin Glauser"},"logo":{"@id":"https:\/\/www.robinglauser.ch\/blog\/wp-content\/uploads\/2015\/10\/DSC_1244_small.jpg"},"description":"I'm a web developer.","sameAs":["https:\/\/www.robinglauser.ch","https:\/\/www.instagram.com\/robinglauser\/","https:\/\/x.com\/robinglauser"],"url":"https:\/\/www.robinglauser.ch\/blog\/author\/robin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/3333","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/comments?post=3333"}],"version-history":[{"count":2,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/3333\/revisions"}],"predecessor-version":[{"id":3350,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/posts\/3333\/revisions\/3350"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/media\/3349"}],"wp:attachment":[{"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/media?parent=3333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/categories?post=3333"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.robinglauser.ch\/blog\/wp-json\/wp\/v2\/tags?post=3333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}