{"id":31499,"date":"2021-04-14T11:21:00","date_gmt":"2021-04-14T16:21:00","guid":{"rendered":"https:\/\/www.rosehosting.com\/blog\/?p=31499"},"modified":"2023-04-04T05:16:58","modified_gmt":"2023-04-04T10:16:58","slug":"how-to-install-docker-compose-on-debian-9","status":"publish","type":"post","link":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/","title":{"rendered":"How To Install Docker Compose on Debian 9"},"content":{"rendered":"<div id=\"bsf_rt_marker\"><\/div>\r\n<figure class=\"wp-block-image size-large\"><img decoding=\"async\" width=\"742\" height=\"372\" class=\"wp-image-36419\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9.jpg\" alt=\"how to install docker compose on debian 9\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9.jpg 742w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9-300x150.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9-150x75.jpg 150w\" sizes=\"(max-width: 742px) 100vw, 742px\" \/><\/figure>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"alignright is-resized\"><img decoding=\"async\" class=\"wp-image-36358\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9-tutorial.jpg\" alt=\"ow to install docker compose on debian 9 tutorial\" width=\"207\" height=\"131\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9-tutorial.jpg 413w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9-tutorial-300x190.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9-tutorial-150x95.jpg 150w\" sizes=\"(max-width: 207px) 100vw, 207px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Docker is an open-source application that provides lightweight operating-system-level virtualization through the use of containers. The key benefit of Docker is that it allows users to package an application with all of its dependencies into a standardized unit for software development. Docker Engine is available in <strong>Community Edition<\/strong> (CE) and <strong>Enterprise Edition<\/strong> (EE). In this guide, we will do the installation of Docker Community Edition on Debian 9.<\/p>\r\n\r\n\r\n\r\n<p><!--more--><\/p>\r\n\r\n\r\n\r\n<p>&nbsp;<\/p>\r\n\r\n\r\n\r\n<div id=\"ez-toc-container\" class=\"ez-toc-v2_0_82_2 counter-hierarchy ez-toc-counter ez-toc-transparent 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-69ec4dc6ae8c6\" class=\"ez-toc-cssicon-toggle-label\"><span class=\"ez-toc-cssicon\"><span class=\"eztoc-hide\" style=\"display:none;\">Toggle<\/span><span class=\"ez-toc-icon-toggle-span\"><svg style=\"fill: #999;color:#999\" 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: #999;color:#999\" 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-69ec4dc6ae8c6\"  aria-label=\"Toggle\" \/><nav><ul class='ez-toc-list ez-toc-list-level-1 ' ><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-1\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/#Requirements\" >Requirements<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-2\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/#Step-1-Connect-via-SSH\" >Step 1: Connect via SSH<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-3\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/#Step-2-Install-Dependency-packages\" >Step 2: Install Dependency packages<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-4\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/#Step-3-Setting-Up-Docker-Repository\" >Step 3: Setting Up Docker Repository<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-5\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/#Step-4-Installing-Docker-CE\" >Step 4: Installing Docker CE<\/a><\/li><li class='ez-toc-page-1 ez-toc-heading-level-2'><a class=\"ez-toc-link ez-toc-heading-6\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/#Step-5-Testing-Docker-CE\" >Step 5: Testing Docker CE<\/a><\/li><\/ul><\/nav><\/div>\n<h2 class=\"wp-block-heading\" id=\"requirements\"><span class=\"ez-toc-section\" id=\"Requirements\"><\/span>Requirements<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<ul class=\"wp-block-list\">\r\n<li>For the purposes of this tutorial, we will be using a\u00a0<a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\" target=\"_blank\" rel=\"noopener noreferrer\">Debian 9 Server<\/a>.<\/li>\r\n<li>Full SSH root access or a user with sudo privileges is also required.<\/li>\r\n<\/ul>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-1-Connect-via-SSH\"><\/span><span id=\"Step-1-Connect-via-SSH\" class=\"ez-toc-section\"><span id=\"1-Connect-via-SSH\" class=\"ez-toc-section\">Step 1: Connect via SSH<\/span><\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Connect to your server via SSH as the root user using the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">ssh root@IP_ADDRESS -p PORT_NUMBER<\/pre>\r\n\r\n\r\n\r\n<p>Remember to replace \u201c<span style=\"color: #ff0000;\">IP_ADDRESS<\/span>\u201d and \u201c<span style=\"color: #ff0000;\">PORT_NUMBER<\/span>\u201d with your actual server IP address and SSH port number. Replace \u201croot\u201d with your admin username if you\u2019re not planning on using the root account.<\/p>\r\n\r\n\r\n\r\n<p>Before starting with the installation, we need to update the OS packages to their latest versions.<\/p>\r\n\r\n\r\n\r\n<p>We can do this by running the following commands:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ apt-get update \r\n$ apt-get upgrade<\/pre>\r\n\r\n\r\n\r\n<p>Once the upgrade is complete, we can move on to the next step.<\/p>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-2-Install-Dependency-packages\"><\/span>Step 2: Install Dependency packages<span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Start the installation by ensuring that all the packages used by docker as dependencies are installed.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">apt-get install -y apt-transport-https ca-certificates curl gnupg2 software-properties-common build-essential<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-3-Setting-Up-Docker-Repository\"><\/span><span id=\"Step-3-Setting-Up-Docker-Repository\" class=\"ez-toc-section\">Step 3: Setting Up Docker Repository<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>To add the Docker repository to our server, we need to add the GPG keys first with the following commands:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">curl -fsSL https:\/\/download.docker.com\/linux\/debian\/gpg | sudo apt-key add -<\/pre>\r\n\r\n\r\n\r\n<p>Once added, add the repository pointing to \u2018stable\u2019 update channel.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">add-apt-repository \"deb [arch=amd64] https:\/\/download.docker.com\/linux\/debian $(lsb_release -cs) stable\"<\/pre>\r\n\r\n\r\n\r\n<p>We can now update our packages, which should include the repository from Docker.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">apt-get update<\/pre>\r\n\r\n\r\n\r\n<p>After applying command, you should see the repository link added:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">Get:5 https:\/\/download.docker.com\/linux\/debian stretch InRelease [44.8 kB]\r\nGet:7 https:\/\/download.docker.com\/linux\/debian stretch\/stable amd64 Packages [8,437 B]<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-4-Installing-Docker-CE\"><\/span><span id=\"Step-4-Installing-Docker-CE\" class=\"ez-toc-section\">Step 4: Installing Docker CE<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>After setting up the repository, we can now install the Docker CE, as well as the Docker CLI by running the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">apt-get install -y docker-ce docker-ce-cli<\/pre>\r\n\r\n\r\n\r\n<p>This might take some time as it will also install any additional libraries that it requires.<\/p>\r\n\r\n\r\n\r\n<p>Once the installation is done, verify that the docker service is running by typing:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">systemctl status docker<\/pre>\r\n\r\n\r\n\r\n<p>Output:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">docker.service - Docker Application Container Engine\r\n   Loaded: loaded (\/lib\/systemd\/system\/docker.service; enabled; vendor preset: enabled)\r\n   Active: active (running) since Sun 2019-07-14 03:40:16 EDT; 38s ago\r\n     Docs: https:\/\/docs.docker.com\r\n Main PID: 4434 (dockerd)\r\n   CGroup: \/system.slice\/docker.service\r\n           \u2514\u25004434 \/usr\/bin\/dockerd -H fd:\/\/ --containerd=\/run\/containerd\/containerd.sock<\/pre>\r\n\r\n\r\n\r\n<p>You can also check and verify the Docker version using:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">docker -v<\/pre>\r\n\r\n\r\n\r\n<p>Output:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">Docker version 18.09.7, build 2d0083d<\/pre>\r\n\r\n\r\n\r\n<p>Finally, make sure that the docker service will run at boot:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">systemctl enable docker<\/pre>\r\n\r\n\r\n\r\n<p>The\u00a0<code>docker<\/code> the group\u00a0is created but no users are added. Add\u00a0your\u00a0normal user to the group to run docker commands as a non-privileged\u00a0user.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">sudo usermod -aG docker $USER<\/pre>\r\n\r\n\r\n\r\n<h2 class=\"wp-block-heading\"><span class=\"ez-toc-section\" id=\"Step-5-Testing-Docker-CE\"><\/span><span id=\"Step-6-Testing-Docker-CE\" class=\"ez-toc-section\">Step 5: Testing Docker CE<\/span><span class=\"ez-toc-section-end\"><\/span><\/h2>\r\n\r\n\r\n\r\n<p>Let\u2019s now test if we can run Docker containers. You can test your Docker installation by running the classic \u201cHello World\u201d.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ docker run hello-world\r\n\r\nHello from Docker.\r\nThis message shows that your installation appears to be working correctly.\r\n...<\/pre>\r\n\r\n\r\n\r\n<p>You can use the\u00a0<code>docker images<\/code>\u00a0command to see a list of all images on your system.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">REPOSITORY          TAG                 IMAGE ID            CREATED             SIZE\r\nhello-world         latest              fce289e99eb9        6 months ago        1.84kB<\/pre>\r\n\r\n\r\n\r\n<p>The\u00a0<code>docker ps<\/code>\u00a0command shows you all containers that are currently running.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS              PORTS               NAMES<\/pre>\r\n\r\n\r\n\r\n<p>Since no containers are running, we see a blank line. Let&#8217;s try a more useful variant:\u00a0<code>docker ps -a<\/code><\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">CONTAINER ID        IMAGE               COMMAND             CREATED             STATUS                      PORTS               NAMES\r\n1a9048235446        hello-world         \"\/hello\"            24 minutes ago      Exited (0) 24 minutes ago                       amazing_bassi<\/pre>\r\n\r\n\r\n\r\n<p>Throughout this tutorial, you wll run <code>docker run<\/code>\u00a0multiple times and leaving stray containers will eat up disk space. Hence, as a rule of thumb, I clean up containers once I&#8217;m done with them. To do that, you can run the\u00a0<code>docker rm<\/code>\u00a0command. Just copy the container IDs from above and paste them alongside the command.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">docker rm 1a9048235446\r\n1a9048235446<\/pre>\r\n\r\n\r\n\r\n<p>In later versions of Docker, the\u00a0<code>docker container prune<\/code>\u00a0command can be used to achieve the same effect.<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">$ docker container prune\r\nWARNING! This will remove all stopped containers.\r\nAre you sure you want to <span class=\"hljs-built_in\">continue<\/span>? [y\/N] y<\/pre>\r\n\r\n\r\n\r\n<p>If you want to see the options available to a specific command execute the following command:<\/p>\r\n\r\n\r\n\r\n<pre class=\"wp-block-preformatted\">docker --help<\/pre>\r\n\r\n\r\n\r\n<p>The output should be similar to this:<\/p>\r\n\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"aligncenter\"><img decoding=\"async\" width=\"793\" height=\"965\" class=\"wp-image-36355\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9.png\" alt=\"install docker compose on debian 9\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9.png 793w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9-247x300.png 247w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9-123x150.png 123w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9-768x935.png 768w\" sizes=\"(max-width: 793px) 100vw, 793px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>That\u2019s it! Docker CE has been successfully installed on your Debian 9 server.<\/p>\r\n\r\n\r\n<hr class=\"wp-block-separator\" \/>\r\n\r\n\r\n<div class=\"wp-block-image\">\r\n<figure class=\"alignright is-resized\"><img decoding=\"async\" class=\"wp-image-36358\" src=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9-tutorial.jpg\" alt=\"ow to install docker compose on debian 9 tutorial\" width=\"193\" height=\"122\" srcset=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9-tutorial.jpg 413w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9-tutorial-300x190.jpg 300w, https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9-tutorial-150x95.jpg 150w\" sizes=\"(max-width: 193px) 100vw, 193px\" \/><\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n<p>Of course, you don\u2019t need to do any of this if you use one of our\u00a0<a href=\"https:\/\/www.rosehosting.com\/vps-hosting.html\">Linux VPS Hosting<\/a> services, in which case you can simply ask our expert Linux admins to install Docker CE onto your <a href=\"https:\/\/www.rosehosting.com\/debian-hosting.html\">Managed Debian 9 VPS<\/a> for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\r\n\r\n\r\n\r\n<p><span style=\"color: #ff0000;\">PS.<\/span>\u00a0If you liked this post, please share it with your friends on the social networks using the buttons below, or simply leave a comment in the comment section. Thanks.<\/p>\r\n","protected":false},"excerpt":{"rendered":"<p>Docker is an open-source application that provides lightweight operating-system-level virtualization through the use of containers. The key benefit of Docker &#8230; <\/p>\n<p class=\"read-more-container\"><a title=\"How To Install Docker Compose on Debian 9\" class=\"read-more button\" href=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/#more-31499\" aria-label=\"Read more about How To Install Docker Compose on Debian 9\">Read More<\/a><\/p>\n","protected":false},"author":4,"featured_media":36419,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1700,2072],"tags":[48,1577,79,1794],"class_list":["post-31499","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-debian","category-open-source","tag-debian","tag-debian-9","tag-debian-vps","tag-docker","generate-columns","tablet-grid-50","mobile-grid-100","grid-parent","grid-33"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.4 (Yoast SEO v27.4) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>How To Install Docker Compose on Debian 9 | RoseHosting<\/title>\n<meta name=\"description\" content=\"We&#039;ll show you how to Install docker compose on Debian 9. Docker is an open-source application that provides lightweight virtualization.\" \/>\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.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How To Install docker compose on Debian 9\" \/>\n<meta property=\"og:description\" content=\"We&#039;ll show you how to Install docker compose on Debian 9. Docker is an open-source application that provides lightweight virtualization.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/\" \/>\n<meta property=\"og:site_name\" content=\"RoseHosting\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/RoseHosting\" \/>\n<meta property=\"article:author\" content=\"https:\/\/www.facebook.com\/rosehosting.helpdesk\" \/>\n<meta property=\"article:published_time\" content=\"2021-04-14T16:21:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-04-04T10:16:58+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"742\" \/>\n\t<meta property=\"og:image:height\" content=\"372\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"Jeff Wilson\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How To Install docker compose on Debian 9\" \/>\n<meta name=\"twitter:description\" content=\"We&#039;ll show you how to Install docker compose on Debian 9. Docker is an open-source application that provides lightweight virtualization.\" \/>\n<meta name=\"twitter:creator\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:site\" content=\"@rosehosting\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Jeff Wilson\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-docker-compose-on-debian-9\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-docker-compose-on-debian-9\\\/\"},\"author\":{\"name\":\"Jeff Wilson\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\"},\"headline\":\"How To Install Docker Compose on Debian 9\",\"datePublished\":\"2021-04-14T16:21:00+00:00\",\"dateModified\":\"2023-04-04T10:16:58+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-docker-compose-on-debian-9\\\/\"},\"wordCount\":632,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-docker-compose-on-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/how-to-install-docker-compose-on-debian-9.jpg\",\"keywords\":[\"debian\",\"debian 9\",\"debian vps\",\"docker\"],\"articleSection\":[\"Debian\",\"Open-source\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-docker-compose-on-debian-9\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-docker-compose-on-debian-9\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-docker-compose-on-debian-9\\\/\",\"name\":\"How To Install Docker Compose on Debian 9 | RoseHosting\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-docker-compose-on-debian-9\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-docker-compose-on-debian-9\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/how-to-install-docker-compose-on-debian-9.jpg\",\"datePublished\":\"2021-04-14T16:21:00+00:00\",\"dateModified\":\"2023-04-04T10:16:58+00:00\",\"description\":\"We'll show you how to Install docker compose on Debian 9. Docker is an open-source application that provides lightweight virtualization.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-docker-compose-on-debian-9\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-docker-compose-on-debian-9\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-docker-compose-on-debian-9\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/how-to-install-docker-compose-on-debian-9.jpg\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/03\\\/how-to-install-docker-compose-on-debian-9.jpg\",\"width\":742,\"height\":372,\"caption\":\"how to install docker compose on debian 9\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/how-to-install-docker-compose-on-debian-9\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How To Install Docker Compose on Debian 9\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"name\":\"RoseHosting.com\",\"description\":\"Premium Linux Tutorials Since 2001\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#organization\",\"name\":\"RoseHosting\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"contentUrl\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/wp-content\\\/uploads\\\/2022\\\/03\\\/android-chrome-192x192-1.png\",\"width\":192,\"height\":192,\"caption\":\"RoseHosting\"},\"image\":{\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/RoseHosting\",\"https:\\\/\\\/x.com\\\/rosehosting\",\"https:\\\/\\\/www.linkedin.com\\\/in\\\/rosehosting\\\/\"],\"description\":\"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.\",\"email\":\"info@rosehosting.com\",\"telephone\":\"(314) 275-0414\",\"legalName\":\"Rose Web Services LLC\",\"foundingDate\":\"2001-04-02\",\"numberOfEmployees\":{\"@type\":\"QuantitativeValue\",\"minValue\":\"11\",\"maxValue\":\"50\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/#\\\/schema\\\/person\\\/7ce77a842fa6a9a7f8efa186f2353713\",\"name\":\"Jeff Wilson\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g\",\"caption\":\"Jeff Wilson\"},\"description\":\"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.\",\"sameAs\":[\"https:\\\/\\\/www.rosehosting.com\",\"https:\\\/\\\/www.facebook.com\\\/rosehosting.helpdesk\"],\"url\":\"https:\\\/\\\/www.rosehosting.com\\\/blog\\\/author\\\/jwilson\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"How To Install Docker Compose on Debian 9 | RoseHosting","description":"We'll show you how to Install docker compose on Debian 9. Docker is an open-source application that provides lightweight virtualization.","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.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/","og_locale":"en_US","og_type":"article","og_title":"How To Install docker compose on Debian 9","og_description":"We'll show you how to Install docker compose on Debian 9. Docker is an open-source application that provides lightweight virtualization.","og_url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/","og_site_name":"RoseHosting","article_publisher":"https:\/\/www.facebook.com\/RoseHosting","article_author":"https:\/\/www.facebook.com\/rosehosting.helpdesk","article_published_time":"2021-04-14T16:21:00+00:00","article_modified_time":"2023-04-04T10:16:58+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9.jpg","type":"image\/jpeg"}],"author":"Jeff Wilson","twitter_card":"summary_large_image","twitter_title":"How To Install docker compose on Debian 9","twitter_description":"We'll show you how to Install docker compose on Debian 9. Docker is an open-source application that provides lightweight virtualization.","twitter_creator":"@rosehosting","twitter_site":"@rosehosting","twitter_misc":{"Written by":"Jeff Wilson","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/#article","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/"},"author":{"name":"Jeff Wilson","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713"},"headline":"How To Install Docker Compose on Debian 9","datePublished":"2021-04-14T16:21:00+00:00","dateModified":"2023-04-04T10:16:58+00:00","mainEntityOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/"},"wordCount":632,"commentCount":0,"publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9.jpg","keywords":["debian","debian 9","debian vps","docker"],"articleSection":["Debian","Open-source"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/","url":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/","name":"How To Install Docker Compose on Debian 9 | RoseHosting","isPartOf":{"@id":"https:\/\/www.rosehosting.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/#primaryimage"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/#primaryimage"},"thumbnailUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9.jpg","datePublished":"2021-04-14T16:21:00+00:00","dateModified":"2023-04-04T10:16:58+00:00","description":"We'll show you how to Install docker compose on Debian 9. Docker is an open-source application that provides lightweight virtualization.","breadcrumb":{"@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/#primaryimage","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9.jpg","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2021\/03\/how-to-install-docker-compose-on-debian-9.jpg","width":742,"height":372,"caption":"how to install docker compose on debian 9"},{"@type":"BreadcrumbList","@id":"https:\/\/www.rosehosting.com\/blog\/how-to-install-docker-compose-on-debian-9\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.rosehosting.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How To Install Docker Compose on Debian 9"}]},{"@type":"WebSite","@id":"https:\/\/www.rosehosting.com\/blog\/#website","url":"https:\/\/www.rosehosting.com\/blog\/","name":"RoseHosting.com","description":"Premium Linux Tutorials Since 2001","publisher":{"@id":"https:\/\/www.rosehosting.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.rosehosting.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.rosehosting.com\/blog\/#organization","name":"RoseHosting","url":"https:\/\/www.rosehosting.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","contentUrl":"https:\/\/www.rosehosting.com\/blog\/wp-content\/uploads\/2022\/03\/android-chrome-192x192-1.png","width":192,"height":192,"caption":"RoseHosting"},"image":{"@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/RoseHosting","https:\/\/x.com\/rosehosting","https:\/\/www.linkedin.com\/in\/rosehosting\/"],"description":"RoseHosting is a leading Linux hosting provider, serving thousands of clients world-wide since 2001.","email":"info@rosehosting.com","telephone":"(314) 275-0414","legalName":"Rose Web Services LLC","foundingDate":"2001-04-02","numberOfEmployees":{"@type":"QuantitativeValue","minValue":"11","maxValue":"50"}},{"@type":"Person","@id":"https:\/\/www.rosehosting.com\/blog\/#\/schema\/person\/7ce77a842fa6a9a7f8efa186f2353713","name":"Jeff Wilson","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0985fed6af04cc60703d2ecf27c65dfa373e0ca00eb21c0b03477e099ea3f99f?s=96&r=g","caption":"Jeff Wilson"},"description":"An experienced Linux veteran with many years of experience. Helping other Linux admins with frequent Linux and business-related blog posts on the RoseHosting blog. Techie by choice. Loving nature and travel. Happily married and father of two lovely children.","sameAs":["https:\/\/www.rosehosting.com","https:\/\/www.facebook.com\/rosehosting.helpdesk"],"url":"https:\/\/www.rosehosting.com\/blog\/author\/jwilson\/"}]}},"_links":{"self":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31499","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/comments?post=31499"}],"version-history":[{"count":8,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31499\/revisions"}],"predecessor-version":[{"id":45285,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/posts\/31499\/revisions\/45285"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media\/36419"}],"wp:attachment":[{"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/media?parent=31499"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/categories?post=31499"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.rosehosting.com\/blog\/wp-json\/wp\/v2\/tags?post=31499"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}