{"id":499854,"date":"2022-10-11T03:48:11","date_gmt":"2022-10-11T00:48:11","guid":{"rendered":"https:\/\/en.buradabiliyorum.com\/how-to-install-and-get-started-with-docker-desktop-on-linux\/"},"modified":"2022-10-11T03:48:11","modified_gmt":"2022-10-11T00:48:11","slug":"how-to-install-and-get-started-with-docker-desktop-on-linux","status":"publish","type":"post","link":"https:\/\/buradabiliyorum.com\/en\/how-to-install-and-get-started-with-docker-desktop-on-linux\/","title":{"rendered":"#How to Install and Get Started With Docker Desktop on Linux"},"content":{"rendered":"<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_85 counter-hierarchy ez-toc-counter ez-toc-custom ez-toc-container-direction\">\n<p class=\"ez-toc-title\" style=\"cursor:inherit\">Table of Contents<\/p>\n<label for=\"ez-toc-cssicon-toggle-item-6a40dd3b11097\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #dd3333;color:#dd3333\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" class=\"list-377408\" width=\"20px\" height=\"20px\" viewBox=\"0 0 24 24\" fill=\"none\"><path d=\"M6 6H4v2h2V6zm14 0H8v2h12V6zM4 11h2v2H4v-2zm16 0H8v2h12v-2zM4 16h2v2H4v-2zm16 0H8v2h12v-2z\" fill=\"currentColor\"><\/path><\/svg><svg style=\"fill: #dd3333;color:#dd3333\" class=\"arrow-unsorted-368013\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" width=\"10px\" height=\"10px\" viewBox=\"0 0 24 24\" version=\"1.2\" baseProfile=\"tiny\"><path d=\"M18.2 9.3l-6.2-6.3-6.2 6.3c-.2.2-.3.4-.3.7s.1.5.3.7c.2.2.4.3.7.3h11c.3 0 .5-.1.7-.3.2-.2.3-.5.3-.7s-.1-.5-.3-.7zM5.8 14.7l6.2 6.3 6.2-6.3c.2-.2.3-.5.3-.7s-.1-.5-.3-.7c-.2-.2-.4-.3-.7-.3h-11c-.3 0-.5.1-.7.3-.2.2-.3.5-.3.7s.1.5.3.7z\"\/><\/svg><\/span><\/span><\/label><input type=\"checkbox\"  id=\"ez-toc-cssicon-toggle-item-6a40dd3b11097\" checked aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-1'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-and-get-started-with-docker-desktop-on-linux\/#%E2%80%9CHow_to_Install_and_Get_Started_With_Docker_Desktop_on_Linux%E2%80%9D\" >&#8220;How to Install and Get Started With Docker Desktop on Linux&#8221;<\/a><ul class='ez-toc-list-level-2' ><li class='ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-and-get-started-with-docker-desktop-on-linux\/#Preparing_to_Run_Docker_Desktop\" >Preparing to Run Docker Desktop<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-and-get-started-with-docker-desktop-on-linux\/#Installing_Docker_Desktop\" >Installing Docker Desktop<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-and-get-started-with-docker-desktop-on-linux\/#Using_Docker_Desktop\" >Using Docker Desktop<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-and-get-started-with-docker-desktop-on-linux\/#Enabling_Kubernetes\" >Enabling Kubernetes<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-and-get-started-with-docker-desktop-on-linux\/#Docker_Desktop_vs_Docker_Engine\" >Docker Desktop vs Docker Engine<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-7\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-and-get-started-with-docker-desktop-on-linux\/#Configuring_Desktops_Docker_Daemon\" >Configuring Desktop\u2019s Docker Daemon<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-8\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-and-get-started-with-docker-desktop-on-linux\/#Customizing_Resource_Limits\" >Customizing Resource Limits<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-9\" href=\"https:\/\/buradabiliyorum.com\/en\/how-to-install-and-get-started-with-docker-desktop-on-linux\/#Summary\" >Summary<\/a><\/li><\/ul><\/li><\/ul><\/nav><\/div>\n<h1><span class=\"ez-toc-section\" id=\"%E2%80%9CHow_to_Install_and_Get_Started_With_Docker_Desktop_on_Linux%E2%80%9D\"><\/span>&#8220;How to Install and Get Started With Docker Desktop on Linux&#8221;<span class=\"ez-toc-section-end\"><\/span><\/h1>\n<div>\n<img loading=\"lazy\" decoding=\"async\" class=\"type:primaryImage alignnone size-full wp-image-803108\" data-pagespeed-no-defer=\"\" src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/Docker.jpeg?width=1198&amp;trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"Docker logo\" width=\"1602\" height=\"902\"\/><\/p>\n<p><a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.docker.com\/products\/docker-desktop\">Docker Desktop<\/a> is a popular containerization solution which bundles everything you need to build images and run containers. One <a href=\"https:\/\/buradabiliyorum.com\/en\/category\/download-scripts-themes-apps\/\" data-internallinksmanager029f6b8e52c=\"9\" title=\"Download Scripts &amp; Themes &amp; Apps\" target=\"_blank\" rel=\"noopener\">download<\/a> gives you Docker, Docker Compose, Kubernetes, a comprehensive GUI, and support for a large selection of third-party extensions.<\/p>\n<p>Docker Desktop has historically been limited to Windows and Mac systems. Linux users have had to install Docker Engine manually and interact with it from the terminal or a separate user interface. Docker announced a version of Desktop for Linux <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.docker.com\/blog\/the-magic-of-docker-desktop-is-now-available-on-linux\">at DockerCon 2022<\/a>, finally offering feature parity across all three major platforms. This guide will show you how to set it up and get started.<\/p>\n<h2 id=\"preparing-to-run-docker-desktop\"><span class=\"ez-toc-section\" id=\"Preparing_to_Run_Docker_Desktop\"><\/span>Preparing to Run Docker Desktop<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The steps in this article have been tested in a clean Ubuntu 22.04 environment. Desktop\u2019s also supported on Ubuntu 21.10, Debian 11, and Fedora 35\/36. Distro-specific documentation is available <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/docs.docker.com\/desktop\/install\/linux-install\">on Docker\u2019s website<\/a>.<\/p>\n<p>Desktop requires a 64-bit system with 4 GB of RAM and KVM hardware virtualization enabled. The KVM kernel module is usually enabled automatically when your host supports virtualization. You can check by running the <code>kvm-ok<\/code> command:<\/p>\n<pre>$ kvm-ok&#13;\nINFO: \/dev\/kvm exists&#13;\nKVM acceleration can be used<\/pre>\n<p>Enable virtualization in your system\u2019s BIOS or UEFI if <code>kvm-ok<\/code> reports an error. You can also try manually loading the KVM kernel module using <code>modprobe<\/code>:<\/p>\n<pre># 1\/2&#13;\n$ sudo modprobe kvm&#13;\n&#13;\n# 2\/2 INTEL ONLY&#13;\n$ sudo modprobe kvm_intel&#13;\n&#13;\n# 2\/2 AMD ONLY&#13;\n$ sudo modprobe kvm_amd<\/pre>\n<p>Docker Desktop isn\u2019t designed to run alongside Docker Engine. You <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/docs.docker.com\/desktop\/install\/linux-install\/#differences-between-docker-desktop-for-linux-and-docker-engine\">should stop the Docker service<\/a> if you\u2019ve already been using Docker Engine on your machine. This will reduce resource consumption and minimize the risk of conflicts between Engine and Desktop.<\/p>\n<pre>$ sudo service docker stop<\/pre>\n<h2 id=\"installing-docker-desktop\"><span class=\"ez-toc-section\" id=\"Installing_Docker_Desktop\"><\/span>Installing Docker Desktop<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>The Docker Desktop package isn\u2019t yet available in repositories so it must be manually acquired. Download the right package for your operating system using the links <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/docs.docker.com\/desktop\/install\/linux-install\">in the documentation<\/a>.<\/p>\n<pre>$ wget https:\/\/desktop.docker.com\/linux\/main\/amd64\/docker-desktop-4.12.0-amd64.deb<\/pre>\n<p>The Docker Desktop package depends on other packages from the Docker repository. Although Desktop itself isn\u2019t installed from the repository, you still need it in your sources list so the dependencies can be resolved. Run the following sequence of commands to add Docker\u2019s Apt repository to your machine:<\/p>\n<pre>$ sudo apt update&#13;\n$ sudo apt-get install -y \\&#13;\n    ca-certificates \\&#13;\n    curl \\&#13;\n    gnupg \\&#13;\n    lsb-release&#13;\n&#13;\n# Download the GPG key used to sign the packages in the repository&#13;\n$ sudo mkdir -p \/etc\/apt\/keyrings&#13;\n$ curl -fsSL https:\/\/download.docker.com\/linux\/ubuntu\/gpg | sudo gpg --dearmor -o \/etc\/apt\/keyrings\/docker.gpg&#13;\n&#13;\n# Add the repository to your package sources list&#13;\n$ echo \\&#13;\n  \"deb [arch=$(dpkg --print-architecture) signed-by=\/etc\/apt\/keyrings\/docker.gpg] https:\/\/download.docker.com\/linux\/ubuntu \\&#13;\n  $(lsb_release -cs) stable\" | sudo tee \/etc\/apt\/sources.list.d\/docker.list &gt; \/dev\/null&#13;\n$ sudo apt update<\/pre>\n<p>Now you can install the Desktop package with Apt\u2019s <code>install<\/code> command:<\/p>\n<pre>$ sudo apt install -y .\/docker-desktop-4.12.0-amd64.deb<\/pre>\n<p>Docker Desktop should now appear in your applications list.<\/p>\n<h2 id=\"using-docker-desktop\"><span class=\"ez-toc-section\" id=\"Using_Docker_Desktop\"><\/span>Using Docker Desktop<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Start Docker Desktop from your operating system\u2019s app launcher. You should see the Docker whale icon appear in your system tray. Clicking the icon displays Docker\u2019s tray menu.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-836038\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/09\/2022-09-14_15-33.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"image of the Docker Desktop system tray menu on Ubuntu\" width=\"434\" height=\"250\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>The first run initialization process could take a couple of minutes to complete. The icon\u2019s animation will stop and the status line at the top of the menu will change to \u201cDocker Desktop is running\u201d when Docker\u2019s ready to use. Click the \u201cDashboard\u201d item at the top of the menu to open the UI if it doesn\u2019t appear automatically.<\/p>\n<p>You\u2019ll be prompted to accept the terms of service and will then be taken to the Containers screen. You can optionally login to Docker Hub by clicking the Login button in the title bar and following the prompts.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-836039\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/09\/Screenshot-from-2022-09-14-15-50-43.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"image of the Docker Desktop welcome screen\" width=\"1280\" height=\"647\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Try running <code>docker<\/code> and <code>docker compose<\/code> in your terminal to check the CLIs are available:<\/p>\n<pre>$ docker version&#13;\nClient: Docker Engine - Community&#13;\n Cloud integration: v1.0.29&#13;\n Version:           20.10.18&#13;\n...&#13;\n&#13;\n$ docker compose version&#13;\nDocker Compose version v2.10.2<\/pre>\n<p>Next start a container to verify your installation\u2019s working:<\/p>\n<pre>$ docker run -d -p 80:80 docker\/getting-started<\/pre>\n<p>Your new container should show up in the Docker Desktop UI. Clicking the three dots icon to the right of the table reveals a list of actions you can take within Docker Desktop, such as opening a terminal inside the container or visiting published ports in your browser.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-836040\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/09\/Screenshot-from-2022-09-14-15-53-24.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"image of the Docker Desktop containers interface\" width=\"1280\" height=\"647\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>The Images tab on the left side of the screen provides a table of all the container images present on your host. Controls are available to clean up unused images, quickly start a new container from an image, and push and pull images between different registries.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-836041\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/09\/Screenshot-from-2022-09-14-15-54-39.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"image of images in the Docker Desktop interface\" width=\"1280\" height=\"647\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>You can get more information on using Docker Desktop <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/docs.docker.com\/desktop\/use-desktop\">within the documentation<\/a>. The functionality covers many of the <code>docker<\/code> CLI commands while layering in additional higher-level concepts such as <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/docs.docker.com\/desktop\/dev-environments\">Developer Environments<\/a> for work-in-progress code sharing.<\/p>\n<h2 id=\"enabling-kubernetes\"><span class=\"ez-toc-section\" id=\"Enabling_Kubernetes\"><\/span>Enabling Kubernetes<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Docker Desktop has integrated Kubernetes support but it\u2019s not enabled by default. Turn it on by clicking the settings cog icon in the app\u2019s title bar and then selecting \u201cKubernetes\u201d from the menu on the left.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-836044\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/09\/Screenshot-from-2022-09-14-16-03-22.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"image of Kubernetes settings in Docker Desktop\" width=\"1280\" height=\"647\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Check the \u201cEnable Kubernetes\u201d checkbox and press the \u201cApply &amp; Restart\u201d button in the bottom-right. It could take several minutes for Docker to acquire the Kubernetes components and create your cluster. A Kubernetes status icon will appear in the bottom-left of the app, next to the Docker icon. It will turn green when Kubernetes is ready to use. The Kubernetes status is also shown at the top of Docker Desktop\u2019s tray menu.<\/p>\n<p>Next <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/kubernetes.io\/docs\/tasks\/tools\">install Kubectl<\/a>. This is the CLI used to interact with your Kubernetes cluster. The official Snap package is the easiest way to add it to Ubuntu:<\/p>\n<pre>$ sudo snap install kubectl<\/pre>\n<p>Now try using Kubectl to access your cluster:<\/p>\n<pre>$ kubectl get nodes&#13;\nNAME             STATUS   ROLES           AGE   VERSION&#13;\ndocker-desktop   Ready    control-plane   22m   v1.25.0<\/pre>\n<p>The <code>docker-desktop<\/code> node shows as <code>Ready<\/code> so you can start creating Pods:<\/p>\n<pre>$ kubectl run nginx --image nginx:latest&#13;\npod\/nginx created<\/pre>\n<p>Expose your Pod with a service:<\/p>\n<pre>$ kubectl expose pod\/nginx --port 80 --type NodePort&#13;\nservice\/nginx exposed<\/pre>\n<p>Now find the host port that was allocated to the service:<\/p>\n<pre>$ kubectl get services&#13;\nNAME         TYPE        CLUSTER-IP      EXTERNAL-IP   PORT(S)        AGE&#13;\nkubernetes   ClusterIP   10.96.0.1       &lt;none&gt;        443\/TCP        23m&#13;\nnginx        NodePort    10.96.132.212   &lt;none&gt;        80:30107\/TCP   75s<\/pre>\n<p>The port number is <code>30107<\/code>. Use this port to access your service and retrieve the default NGINX landing page:<\/p>\n<pre>$ curl http:\/\/localhost:30107&#13;\n&lt;!DOCTYPE html&gt;&#13;\n&lt;html&gt;&#13;\n&lt;head&gt;&#13;\n&lt;title&gt;Welcome to nginx!&lt;\/title&gt;<\/pre>\n<p>Your Kubernetes cluster is fully operational. It\u2019ll start automatically whenever Docker Desktop is running.<\/p>\n<h2 id=\"docker-desktop-vs-docker-engine\"><span class=\"ez-toc-section\" id=\"Docker_Desktop_vs_Docker_Engine\"><\/span>Docker Desktop vs Docker Engine<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Docker Engine is completely separate to Docker Desktop. Docker Engine launches containers as processes directly on your host. It uses a system service to run the Docker daemon. The <code>docker<\/code> CLI targets this daemon instance when you issue commands.<\/p>\n<p>Docker Desktop runs your containers inside a <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/www.qemu.org\">QEMU<\/a> virtual machine. You don\u2019t have to directly interact with QEMU as the VM\u2019s creation and management is handled for you. Launching Docker Desktop automatically starts the VM; quitting the app will shut it down.<\/p>\n<p>The VM architecture was a necessity for running Docker on Windows and Mac systems. It provides a predictable environment for hosting Linux containers. The Docker team decided to continue using VMs for Desktop on Linux to prevent inconsistencies arising between platforms.<\/p>\n<p>Although the VM doesn\u2019t affect day-to-day Docker usage, it\u2019s a heavier solution that demands more resources than Docker Engine. You can expect the VM to consume around 2 GB of RAM while idle, even when no containers are running. Docker Engine\u2019s memory consumption would be negligible in the same situation.<\/p>\n<p>This means Docker Engine remains the best way to run containers on Linux in production environments or wherever performance is critical. Desktop is a great option for developers who want to use the same fully integrated workflow as peers on Windows and Mac. Desktop\u2019s also the best choice when you want to use Kubernetes without adding any extra tools. You\u2019ll need a dedicated Kubernetes environment such as Minikube or MicroK8s if you\u2019re using Docker Engine.<\/p>\n<h2 id=\"configuring-desktops-docker-daemon\"><span class=\"ez-toc-section\" id=\"Configuring_Desktops_Docker_Daemon\"><\/span>Configuring Desktop\u2019s Docker Daemon<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>You can customize the <a rel=\"nofollow noopener\" target=\"_blank\" href=\"https:\/\/docs.docker.com\/config\/daemon\">Docker daemon configuration<\/a> used by Desktop by clicking the settings cog icon in the title bar and heading to the \u201cDocker Engine\u201d tab on the left of the screen.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-836042\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/09\/Screenshot-from-2022-09-14-15-58-25.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"image of managing Docker Engine settings in Docker Desktop\" width=\"1280\" height=\"647\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>Type or paste your changes into the input provided, then press \u201cApply &amp; Restart\u201d in the bottom-right corner.<\/p>\n<h2 id=\"customizing-resource-limits\"><span class=\"ez-toc-section\" id=\"Customizing_Resource_Limits\"><\/span>Customizing Resource Limits<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Docker Desktop automatically limits the resources that its virtual machine can consume. The defaults are half of the total number of processor cores available, 25% of your system memory, and a 1 GB swap file.<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-836043\" data-pagespeed-lazy-src=\"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/09\/Screenshot-from-2022-09-14-16-01-47.png?trim=1,1&amp;bg-color=000&amp;pad=1,1\" alt=\"image of resource consumption settings in Docker Desktop\" width=\"1280\" height=\"647\" src=\"\/pagespeed_static\/1.JiBnMqyl6S.gif\" onload=\"pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\" onerror=\"this.onerror=null;pagespeed.lazyLoadImages.loadIfVisibleAndMaybeBeacon(this);\"\/><\/p>\n<p>These limits can be changed by heading to Docker Desktop\u2019s settings screen and clicking the \u201cResources\u201d tab in the menu on the left. Use the sliders to customize the cap for each resource. You can resize the virtual disc used to store the VM\u2019s data by scrolling down the screen. Click the \u201cApply &amp; Restart\u201d button in the bottom-right when you\u2019re done.<\/p>\n<h2 id=\"summary\"><span class=\"ez-toc-section\" id=\"Summary\"><\/span>Summary<span class=\"ez-toc-section-end\"><\/span><\/h2>\n<p>Docker Desktop is a developer-oriented containerization solution that combines the <code>docker<\/code> CLI with a versatile GUI and integrated Kubernetes support. Desktop\u2019s arrival on Linux means development teams can standardize on a consistent toolchain, irrespective of the platform preferences of individual engineers.<\/p>\n<p>Docker Desktop is best seen as an alternative to Docker Engine. It provides its own container environment, including a virtualized Docker Engine and a full suite of Docker CLIs. You can\u2019t use the Desktop GUI with an existing Docker Engine installation. Desktop is most applicable to developer workstations while Docker Engine should be used on production servers where you don\u2019t need a graphical interface and want to avoid the overheads of running a VM.<\/p>\n<\/div>\n<p><script>\n setTimeout(function(){\n  !function(f,b,e,v,n,t,s)\n  {if(f.fbq)return;n=f.fbq=function(){n.callMethod?\n  n.callMethod.apply(n,arguments):n.queue.push(arguments)};\n  if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';\n  n.queue=[];t=b.createElement(e);t.async=!0;\n  t.src=v;s=b.getElementsByTagName(e)[0];\n  s.parentNode.insertBefore(t,s) } (window, document,'script',\n  'https:\/\/connect.facebook.net\/en_US\/fbevents.js');\n   fbq('init', '335401813750447');\n   fbq('track', 'PageView');\n  },3000);\n<\/script><\/p>\n<blockquote><p><strong><span style=\"color: #ff6600;\">If you liked the article, do not forget to share it with your friends. Follow us on\u00a0<span style=\"color: #ff0000;\"><a style=\"color: #ff0000;\" href=\"https:\/\/news.google.com\/publications\/CAAqBwgKMLG0nwswvr63Aw\" target=\"_blank\" rel=\"nofollow noopener noreferrer\">Google News<\/a><\/span>\u00a0too, click on the star and choose us from your favorites.<\/span><\/strong><\/p><\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\">For forums sites go to <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/forum.buradabiliyorum.com\/\" target=\"_blank\" rel=\"noopener\">Forum.BuradaBiliyorum.Com<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<blockquote>\n<p style=\"text-align: center;\"><strong>If you want to read more like this article, you can visit our <span style=\"color: #ff9900;\"><a style=\"color: #ff9900;\" href=\"https:\/\/en.buradabiliyorum.com\/technology\/\" target=\"_blank\" rel=\"noopener\">Technology category.<\/a><\/span><\/strong><\/p>\n<\/blockquote>\n<p><span style=\"color: black;\"><a style=\"color: #ff9900;\" href=\"https:\/\/www.howtogeek.com\/devops\/how-to-install-and-get-started-with-docker-desktop-on-linux\/\" target=\"_blank\" rel=\"noopener\">Source<\/a><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"<p>&#8220;How to Install and Get Started With Docker Desktop on Linux&#8221; Docker Desktop is a popular containerization solution which bundles everything you need to build images and run containers. One download gives you Docker, Docker Compose, Kubernetes, a comprehensive GUI, and support for a large selection of third-party extensions. Docker Desktop has historically been limited&#8230;<\/p>\n","protected":false},"author":1,"featured_media":499855,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/www.howtogeek.com\/wp-content\/uploads\/2022\/05\/Docker.jpeg?height=200p&trim=2,2,2,2","fifu_image_alt":"","footnotes":""},"categories":[18],"tags":[],"class_list":["post-499854","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-technology"],"_links":{"self":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/499854","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/comments?post=499854"}],"version-history":[{"count":0,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/posts\/499854\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media\/499855"}],"wp:attachment":[{"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/media?parent=499854"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/categories?post=499854"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/buradabiliyorum.com\/en\/wp-json\/wp\/v2\/tags?post=499854"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}