{"id":136,"date":"2020-01-14T13:38:19","date_gmt":"2020-01-14T11:38:19","guid":{"rendered":"https:\/\/alexskra.com\/blog\/?p=136"},"modified":"2020-10-04T17:58:36","modified_gmt":"2020-10-04T16:58:36","slug":"how-to-run-docker-and-virtualbox-at-the-same-time-on-windows","status":"publish","type":"post","link":"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/","title":{"rendered":"How to run Docker and VirtualBox at the same time on Windows"},"content":{"rendered":"\n<p>I&#8217;m usually using Ubuntu for development with Docker and VirtualBox, but I&#8217;ve recently started using Windows 10. Docker and VirtualBox can&#8217;t be used at the same time if Hyper-V is used.<\/p>\n\n\n\n<p>Hyper-V runs Windows virtualized, so other virtualization software can&#8217;t be used at the same time. This is how and why I switched to docker-machine instead so I could run docker and VirtualBox at the same time.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Uninstall Docker and disable Hyper-V (if installed)<\/h2>\n\n\n\n<p>If you have Docker installed, then you need to remove it.<\/p>\n\n\n\n<p>Then disable Hyper-V by pressing the Windows key and search for&nbsp;<strong>Turn Windows features on or off<\/strong>. Remove the checkbox on Hyper-V if it&#8217;s enabled.<\/p>\n\n\n\n<p>Open an elevated shell by pressing the windows button and search for&nbsp;<strong>PowerShell<\/strong>. Right-click it and runs it as administrator. <\/p>\n\n\n\n<p>Run the following command:<br><code>bcdedit \/set hypervisorlaunchtype off<\/code><\/p>\n\n\n\n<p>Then reboot.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Make sure Intel VT-x or AMD SVM is enabled<\/h2>\n\n\n\n<p>Press <strong>CTRL + ALT + DELETE<\/strong> and then <strong>Task Manager<\/strong>. Check if it says virtualization enabled as shown below.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"693\" height=\"492\" src=\"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/01\/Annotation-2020-01-14-121059.png\" alt=\"How task manager looks if virtualization is enabled.\" class=\"wp-image-137\" srcset=\"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/01\/Annotation-2020-01-14-121059.png 693w, https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/01\/Annotation-2020-01-14-121059-300x213.png 300w\" sizes=\"auto, (max-width: 693px) 100vw, 693px\" \/><figcaption>It should say enabled if VT-X or AMD SVM is enabled.<\/figcaption><\/figure>\n\n\n\n<p>If it&#8217;s not enabled then you need to enable it in your BIOS.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install VirtualBox<\/h2>\n\n\n\n<p>You can download VirtualBox from <a href=\"https:\/\/www.virtualbox.org\/\">the official site<\/a> and install it. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Install Docker Toolbox<\/h2>\n\n\n\n<p>We&#8217;re going to use Docker Toolbox to run docker in virtualbox.<\/p>\n\n\n\n<p>The official guide <a href=\"https:\/\/docs.docker.com\/toolbox\/toolbox_install_windows\/\">found here<\/a> has some issues, at least on AMD hardware. It keeps complaining about virtualization not being enabled when it is, so we need to make a small modification to disable the virtualization check.<\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>Download Docker Toolbox <a href=\"https:\/\/github.com\/docker\/toolbox\/releases\">from GitHub<\/a>.<\/li><li>Run the install file you just downloaded.<\/li><li>Open <strong>Notepad <\/strong>as administrator and open the file <code>C:\\Program Files\\Docker Toolbox\\start.sh<\/code>. Make sure you select &#8220;all files&#8221; if you can&#8217;t find it.<\/li><li>Find the line <code>\"${DOCKER_MACHINE}\" create -d virtualbox $PROXY_ENV \"${VM}\"<\/code> and replace it with <code>\"${DOCKER_MACHINE}\" create -d virtualbox --virtualbox-no-vtx-check $PROXY_ENV \"${VM}\"<\/code>.<\/li><li>Save the changes.<\/li><li>Start <strong>Docker Quickstart Terminal<\/strong>.<\/li><\/ol>\n\n\n\n<p>Docker should now be working, and you can continue following the official guide from step 3.<\/p>\n\n\n\n<p>Have fun with Docker and VirtualBox at the same time, and a faster Windows experience as Windows no longer runs virtualized \ud83d\ude0a<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;m usually using Ubuntu for development with Docker and VirtualBox, but I&#8217;ve recently started using Windows 10. Docker and VirtualBox can&#8217;t be used at the same time if Hyper-V is used. Hyper-V runs Windows virtualized, so other virtualization software can&#8217;t be used at the same time. This is how and why I switched to docker-machine [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":139,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[15,17,16,18],"class_list":["post-136","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-windows","tag-docker","tag-hyper-v","tag-virtualbox","tag-virtualization"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.0 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to run Docker and VirtualBox at the same time on Windows - ALEXSKRA<\/title>\n<meta name=\"description\" content=\"Do you want to use Docker and VirtualBox at the same time? This post explains how you can disable Hyper-V and use Docker Toolbox to make it work.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to run Docker and VirtualBox at the same time on Windows - ALEXSKRA\" \/>\n<meta property=\"og:description\" content=\"Do you want to use Docker and VirtualBox at the same time? This post explains how you can disable Hyper-V and use Docker Toolbox to make it work.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/\" \/>\n<meta property=\"og:site_name\" content=\"ALEXSKRA\" \/>\n<meta property=\"article:published_time\" content=\"2020-01-14T11:38:19+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2020-10-04T16:58:36+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/01\/Uten-navn-1.png\" \/>\n\t<meta property=\"og:image:width\" content=\"1200\" \/>\n\t<meta property=\"og:image:height\" content=\"888\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Alex\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Alex\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/\"},\"author\":{\"name\":\"Alex\",\"@id\":\"https:\/\/alexskra.com\/blog\/#\/schema\/person\/461ae6ff3c2afab92c7629553db749b8\"},\"headline\":\"How to run Docker and VirtualBox at the same time on Windows\",\"datePublished\":\"2020-01-14T11:38:19+00:00\",\"dateModified\":\"2020-10-04T16:58:36+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/\"},\"wordCount\":352,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/alexskra.com\/blog\/#\/schema\/person\/461ae6ff3c2afab92c7629553db749b8\"},\"image\":{\"@id\":\"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/01\/Uten-navn-1.png\",\"keywords\":[\"docker\",\"hyper-v\",\"virtualbox\",\"virtualization\"],\"articleSection\":[\"Windows\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/\",\"url\":\"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/\",\"name\":\"How to run Docker and VirtualBox at the same time on Windows - ALEXSKRA\",\"isPartOf\":{\"@id\":\"https:\/\/alexskra.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/01\/Uten-navn-1.png\",\"datePublished\":\"2020-01-14T11:38:19+00:00\",\"dateModified\":\"2020-10-04T16:58:36+00:00\",\"description\":\"Do you want to use Docker and VirtualBox at the same time? This post explains how you can disable Hyper-V and use Docker Toolbox to make it work.\",\"breadcrumb\":{\"@id\":\"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/#primaryimage\",\"url\":\"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/01\/Uten-navn-1.png\",\"contentUrl\":\"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/01\/Uten-navn-1.png\",\"width\":1200,\"height\":888,\"caption\":\"VirtualBox and Docker on Windows at the same time.\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/alexskra.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to run Docker and VirtualBox at the same time on Windows\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/alexskra.com\/blog\/#website\",\"url\":\"https:\/\/alexskra.com\/blog\/\",\"name\":\"Alexskra\",\"description\":\"Web development, tech and thinkering\",\"publisher\":{\"@id\":\"https:\/\/alexskra.com\/blog\/#\/schema\/person\/461ae6ff3c2afab92c7629553db749b8\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/alexskra.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\/\/alexskra.com\/blog\/#\/schema\/person\/461ae6ff3c2afab92c7629553db749b8\",\"name\":\"Alex\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/alexskra.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/f899714899a7def0ae7532e94314afc60539b04dc007630f2d6de6fa08382347?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/f899714899a7def0ae7532e94314afc60539b04dc007630f2d6de6fa08382347?s=96&d=mm&r=g\",\"caption\":\"Alex\"},\"logo\":{\"@id\":\"https:\/\/alexskra.com\/blog\/#\/schema\/person\/image\/\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to run Docker and VirtualBox at the same time on Windows - ALEXSKRA","description":"Do you want to use Docker and VirtualBox at the same time? This post explains how you can disable Hyper-V and use Docker Toolbox to make it work.","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:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/","og_locale":"en_US","og_type":"article","og_title":"How to run Docker and VirtualBox at the same time on Windows - ALEXSKRA","og_description":"Do you want to use Docker and VirtualBox at the same time? This post explains how you can disable Hyper-V and use Docker Toolbox to make it work.","og_url":"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/","og_site_name":"ALEXSKRA","article_published_time":"2020-01-14T11:38:19+00:00","article_modified_time":"2020-10-04T16:58:36+00:00","og_image":[{"width":1200,"height":888,"url":"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/01\/Uten-navn-1.png","type":"image\/png"}],"author":"Alex","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Alex","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/#article","isPartOf":{"@id":"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/"},"author":{"name":"Alex","@id":"https:\/\/alexskra.com\/blog\/#\/schema\/person\/461ae6ff3c2afab92c7629553db749b8"},"headline":"How to run Docker and VirtualBox at the same time on Windows","datePublished":"2020-01-14T11:38:19+00:00","dateModified":"2020-10-04T16:58:36+00:00","mainEntityOfPage":{"@id":"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/"},"wordCount":352,"commentCount":0,"publisher":{"@id":"https:\/\/alexskra.com\/blog\/#\/schema\/person\/461ae6ff3c2afab92c7629553db749b8"},"image":{"@id":"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/01\/Uten-navn-1.png","keywords":["docker","hyper-v","virtualbox","virtualization"],"articleSection":["Windows"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/","url":"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/","name":"How to run Docker and VirtualBox at the same time on Windows - ALEXSKRA","isPartOf":{"@id":"https:\/\/alexskra.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/#primaryimage"},"image":{"@id":"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/#primaryimage"},"thumbnailUrl":"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/01\/Uten-navn-1.png","datePublished":"2020-01-14T11:38:19+00:00","dateModified":"2020-10-04T16:58:36+00:00","description":"Do you want to use Docker and VirtualBox at the same time? This post explains how you can disable Hyper-V and use Docker Toolbox to make it work.","breadcrumb":{"@id":"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/#primaryimage","url":"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/01\/Uten-navn-1.png","contentUrl":"https:\/\/alexskra.com\/blog\/wp-content\/uploads\/2020\/01\/Uten-navn-1.png","width":1200,"height":888,"caption":"VirtualBox and Docker on Windows at the same time."},{"@type":"BreadcrumbList","@id":"https:\/\/alexskra.com\/blog\/how-to-run-docker-and-virtualbox-at-the-same-time-on-windows\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/alexskra.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to run Docker and VirtualBox at the same time on Windows"}]},{"@type":"WebSite","@id":"https:\/\/alexskra.com\/blog\/#website","url":"https:\/\/alexskra.com\/blog\/","name":"Alexskra","description":"Web development, tech and thinkering","publisher":{"@id":"https:\/\/alexskra.com\/blog\/#\/schema\/person\/461ae6ff3c2afab92c7629553db749b8"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/alexskra.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/alexskra.com\/blog\/#\/schema\/person\/461ae6ff3c2afab92c7629553db749b8","name":"Alex","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/alexskra.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/f899714899a7def0ae7532e94314afc60539b04dc007630f2d6de6fa08382347?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/f899714899a7def0ae7532e94314afc60539b04dc007630f2d6de6fa08382347?s=96&d=mm&r=g","caption":"Alex"},"logo":{"@id":"https:\/\/alexskra.com\/blog\/#\/schema\/person\/image\/"}}]}},"_links":{"self":[{"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/comments?post=136"}],"version-history":[{"count":8,"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/posts\/136\/revisions"}],"predecessor-version":[{"id":236,"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/posts\/136\/revisions\/236"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/media\/139"}],"wp:attachment":[{"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/media?parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/categories?post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/alexskra.com\/blog\/wp-json\/wp\/v2\/tags?post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}