{"id":1551,"date":"2021-10-30T12:30:00","date_gmt":"2021-10-30T17:30:00","guid":{"rendered":"https:\/\/linuxhostsupport.com\/blog\/?p=1551"},"modified":"2022-06-09T01:08:18","modified_gmt":"2022-06-09T06:08:18","slug":"how-to-install-and-configure-docker-compose-on-ubuntu-20-04","status":"publish","type":"post","link":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/","title":{"rendered":"How to Install and Configure Docker Compose on Ubuntu 20.04"},"content":{"rendered":"\n<div id=\"linux-3206926691\" class=\"linux-before-1st-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1339&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340090_NVMeGoogleAds_728x90_041322-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div><p>Docker Compose is a command-line tool for managing multiple Docker containers. It is a tool for building isolated containers through the YAML file to modify your application\u2019s services.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignright size-full is-resized\"><img decoding=\"async\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-docker-compose-on-ubuntu-20.04.jpg\" alt=\"how to install docker compose on ubuntu 20.04\" class=\"wp-image-1578\" width=\"197\" height=\"205\" srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-docker-compose-on-ubuntu-20.04.jpg 840w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-docker-compose-on-ubuntu-20.04-288x300.jpg 288w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-docker-compose-on-ubuntu-20.04-768x799.jpg 768w\" sizes=\"(max-width: 197px) 100vw, 197px\" \/><\/figure>\n<\/div>\n\n\n<p>On the other hand, Ubuntu 20.04 feels more stable and easy to use, and as a result, users consider the operations running more smoothly, compared to some previous versions. Still, some users have issues while installing certain apps and software. Such is the case with Docker Compose.<\/p>\n\n\n\n<p>In the following tutorial, we will show you how to install Docker Compose on Ubuntu 20.04 server.<\/p>\n\n\n\n<!--more-->\n\n\n\n<h2 class=\"wp-block-heading\">Prerequisites<\/h2>\n\n\n\n<ul class=\"wp-block-list\"><li>A fresh Ubuntu 20.04 VPS.<\/li><li>Access to the root user account (or access to an admin account with root privileges)<\/li><\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Step 1: Log in to the Server &amp; Update the Server OS Packages<\/h2>\n\n\n\n<p>First, log in to your Ubuntu 20.04 server via SSH as the root user:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">ssh root@IP_Address -p Port_number<\/pre>\n\n\n\n<p>You will need to replace \u2018<strong>IP_Address<\/strong>\u2018 and \u2018<strong>Port_number<\/strong>\u2018 with your server\u2019s respective IP address and SSH port number. Additionally, replace \u2018<strong>root<\/strong>\u2018 with the username of the admin account if necessary.<\/p>\n\n\n\n<p>Before starting, you have to make sure that all Ubuntu 20.04 OS packages installed on the server are up to date. You can do this by running the following commands:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt-get update -y<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 2: Install&nbsp; docker-compose on your server<\/h2>\n\n\n\n<p>By default, Docker Compose is available in the Ubuntu 20.04 default repository. You can install it with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt-get install docker-compose<\/pre>\n\n\n\n<p>Once the Docker Compose is installed, verify the installed version with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">docker-compose --version<\/pre>\n\n\n\n<p>You should get the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">docker-compose version 1.25.0, build unknown<\/pre>\n\n\n\n<p>This option will not guarantee that you downloading the latest docker-compose version.<\/p>\n\n\n\n<p>On the GitHub repository, you will get the updates of Docker Compose, which might not be available on the standard Ubuntu repository. At the time of this writing this tutorial, the most current stable version is<code> 1.29.2<\/code>.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">curl -L \"https:\/\/github.com\/docker\/compose\/releases\/download\/1.29.2\/docker-compose-$(uname -s)-$(uname -m)\" -o \/usr\/local\/bin\/docker-compose<\/pre>\n\n\n\n<p>This command saves the file in: <strong>\/usr\/local\/bin<\/strong> directory, under the name <strong>docker-compose<\/strong>.<\/p>\n\n\n\n<p>Next, you need to change the file permission, and making the downloaded file executable with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">chmod +x \/usr\/local\/bin\/docker-compose<\/pre>\n\n\n\n<p>Once Docker Compose is installed, verify the installed version with the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">docker-compose --version<\/pre>\n\n\n\n<p>You should get the following output:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">docker-compose version 1.29.2, build 5becea4c<\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Step 3: Test Docker Compose with Sample Container<\/h2>\n\n\n\n<p>Create a new directory for your sample container example:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">mkdir test<\/pre>\n\n\n\n<p>Change directory that you just created:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">cd test<\/pre>\n\n\n\n<p>From there, create a YAML configuration file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">nano docker-compose.yaml<\/pre>\n\n\n\n<p>And copy the following configuration into <code>docker-compose.yaml<\/code> file:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">version: '3.3'\nservices:\n   hello-world:\n      image:\n         hello-world:latest<\/pre>\n\n\n\n<p>Next, run the following command to pull the hello-world image on your system.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">docker-compose up<\/pre>\n\n\n\n<p>The output should be similar to this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Creating network \"root_default\" with the default driver\nPulling hello-world (hello-world:latest)...\nlatest: Pulling from library\/hello-world\n2db29710123e: Pull complete\nDigest: sha256:9ade9cc2e26189a19c2e8854b9c8f1e14829b51c55a630ee675a5a9540ef6ccf\nStatus: Downloaded newer image for hello-world:latest\nCreating root_hello-world_1 ... done\nAttaching to root_hello-world_1\nhello-world_1 |\nhello-world_1 | Hello from Docker!\nhello-world_1 | This message shows that your installation appears to be working correctly.\nhello-world_1 |\nhello-world_1 | To generate this message, Docker took the following steps:\nhello-world_1 | 1. The Docker client contacted the Docker daemon.\nhello-world_1 | 2. The Docker daemon pulled the \"hello-world\" image from the Docker Hub.\nhello-world_1 | (amd64)\nhello-world_1 | 3. The Docker daemon created a new container from that image which runs the\nhello-world_1 | executable that produces the output you are currently reading.\nhello-world_1 | 4. The Docker daemon streamed that output to the Docker client, which sent it\nhello-world_1 | to your terminal.\nhello-world_1 |\nhello-world_1 | To try something more ambitious, you can run an Ubuntu container with:\nhello-world_1 | $ docker run -it ubuntu bash\nhello-world_1 |\nhello-world_1 | Share images, automate workflows, and more with a free Docker ID:\nhello-world_1 | https:\/\/hub.docker.com\/\nhello-world_1 |\nhello-world_1 | For more examples and ideas, visit:\nhello-world_1 | https:\/\/docs.docker.com\/get-started\/\nhello-world_1 |\nroot_hello-world_1 exited with code 0<\/pre>\n\n\n\n<p>After downloading the image, Docker Compose creates a container and runs the <em>hello-world<\/em> program.<\/p>\n\n\n\n<p>If you want to see the container information, you can use the following command:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">docker ps -a<\/pre>\n\n\n\n<p>The output should be similar to this:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES\n31b0b7a2e9f0 hello-world:latest \"\/hello\" 17 minutes ago Exited (0) 17 minutes ago root_hello-world_1<\/pre>\n\n\n\n<p>In this tutorial, we learned how to install Docker Compose on your Ubuntu 20.04 server, as well as the basics of how to use it.<\/p>\n\n\n\n<p>Of course, you don\u2019t need to do any of this if your server is covered by our <a href=\"https:\/\/linuxhostsupport.com\/monthly-server-management.html\">Managed Linux Support<\/a> services in which case you can simply ask our expert Linux admins to install Docker Composer onto your Ubuntu 20.04 server for you. They are available 24\u00d77 and will take care of your request immediately.<\/p>\n\n\n<div class=\"wp-block-image\">\n<figure class=\"alignleft size-full\"><img decoding=\"async\" width=\"200\" height=\"219\" src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/10\/installing-docker-compose-on-ubuntu-20.04.png\" alt=\"installing docker compose on ubuntu 20.04\" class=\"wp-image-1579\"\/><\/figure>\n<\/div>\n\n\n<p>PS. If 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><div id=\"linux-1424713713\" class=\"linux-after-8th-paragraph linux-entity-placement\" style=\"margin-top: 15px;margin-bottom: 15px;\"><a href=\"https:\/\/www.rosehosting.com\/managed-vps-hosting\/?mtm_campaign=blogs&#038;mtm_source=lhs&#038;mtm_medium=blog&#038;mtm_content=managed-vps&#038;mtm_cid=1340&#038;mtm_placement=inline\" aria-label=\"Untitled\"><img src=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg\" alt=\"\"  srcset=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622.jpg 728w, https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2020\/12\/1340095_VPSGoogleAds_728x90_042622-300x37.jpg 300w\" sizes=\"(max-width: 728px) 100vw, 728px\" width=\"728\" height=\"90\"  style=\"display: inline-block;\" \/><\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Docker Compose is a command-line tool for managing multiple Docker containers. It is a tool for building isolated containers through the YAML file to modify your application\u2019s services. On the other hand, Ubuntu 20.04 feels more stable and easy to use, and as a result, users consider the operations running more smoothly, compared to some [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1581,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2,182],"tags":[207,172,199,174],"class_list":["post-1551","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-tutorials","category-ubuntu","tag-configure","tag-docker-compose","tag-how-to-install","tag-ubuntu-20-04"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Install and Configure Docker Compose on Ubuntu 20.04 | LinuxHostSupport<\/title>\n<meta name=\"description\" content=\"Looking to find a way to install and configure Docker Compose on Ubuntu 20.04 OS? This tutorial explains it, step by step.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Install and Configure Docker Compose on Ubuntu 20.04 | LinuxHostSupport\" \/>\n<meta property=\"og:description\" content=\"Looking to find a way to install and configure Docker Compose on Ubuntu 20.04 OS? This tutorial explains it, step by step.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/\" \/>\n<meta property=\"og:site_name\" content=\"LinuxHostSupport\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/linuxhostsupport\" \/>\n<meta property=\"article:published_time\" content=\"2021-10-30T17:30:00+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2022-06-09T06:08:18+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-and-configure-docker-compose-on-ubuntu-20.04.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=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:title\" content=\"How to Install and Configure Docker Compose on Ubuntu 20.04 | LinuxHostSupport\" \/>\n<meta name=\"twitter:description\" content=\"Looking to find a way to install and configure Docker Compose on Ubuntu 20.04 OS? This tutorial explains it, step by step.\" \/>\n<meta name=\"twitter:creator\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:site\" content=\"@lnxhostsupport\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"headline\":\"How to Install and Configure Docker Compose on Ubuntu 20.04\",\"datePublished\":\"2021-10-30T17:30:00+00:00\",\"dateModified\":\"2022-06-09T06:08:18+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\\\/\"},\"wordCount\":551,\"commentCount\":0,\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20.04.jpg\",\"keywords\":[\"configure\",\"docker compose\",\"how to install\",\"ubuntu 20.04\"],\"articleSection\":[\"Tutorials\",\"Ubuntu\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\\\/\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\\\/\",\"name\":\"How to Install and Configure Docker Compose on Ubuntu 20.04 | LinuxHostSupport\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20.04.jpg\",\"datePublished\":\"2021-10-30T17:30:00+00:00\",\"dateModified\":\"2022-06-09T06:08:18+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\"},\"description\":\"Looking to find a way to install and configure Docker Compose on Ubuntu 20.04 OS? This tutorial explains it, step by step.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\\\/#primaryimage\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20.04.jpg\",\"contentUrl\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/wp-content\\\/uploads\\\/2021\\\/10\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20.04.jpg\",\"width\":742,\"height\":372,\"caption\":\"how to install and configure docker compose on ubuntu 20.04\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Install and Configure Docker Compose on Ubuntu 20.04\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/\",\"name\":\"LinuxHostSupport\",\"description\":\"Linux Tutorials and Guides\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/#\\\/schema\\\/person\\\/53a9571ea078cdf350137a1e97423cfb\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"url\":\"https:\\\/\\\/linuxhostsupport.com\\\/blog\\\/author\\\/r0s3admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Install and Configure Docker Compose on Ubuntu 20.04 | LinuxHostSupport","description":"Looking to find a way to install and configure Docker Compose on Ubuntu 20.04 OS? This tutorial explains it, step by step.","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:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/","og_locale":"en_US","og_type":"article","og_title":"How to Install and Configure Docker Compose on Ubuntu 20.04 | LinuxHostSupport","og_description":"Looking to find a way to install and configure Docker Compose on Ubuntu 20.04 OS? This tutorial explains it, step by step.","og_url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/","og_site_name":"LinuxHostSupport","article_publisher":"https:\/\/www.facebook.com\/linuxhostsupport","article_published_time":"2021-10-30T17:30:00+00:00","article_modified_time":"2022-06-09T06:08:18+00:00","og_image":[{"width":742,"height":372,"url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-and-configure-docker-compose-on-ubuntu-20.04.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_title":"How to Install and Configure Docker Compose on Ubuntu 20.04 | LinuxHostSupport","twitter_description":"Looking to find a way to install and configure Docker Compose on Ubuntu 20.04 OS? This tutorial explains it, step by step.","twitter_creator":"@lnxhostsupport","twitter_site":"@lnxhostsupport","twitter_misc":{"Written by":"admin","Est. reading time":"4 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/#article","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/"},"author":{"name":"admin","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"headline":"How to Install and Configure Docker Compose on Ubuntu 20.04","datePublished":"2021-10-30T17:30:00+00:00","dateModified":"2022-06-09T06:08:18+00:00","mainEntityOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/"},"wordCount":551,"commentCount":0,"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-and-configure-docker-compose-on-ubuntu-20.04.jpg","keywords":["configure","docker compose","how to install","ubuntu 20.04"],"articleSection":["Tutorials","Ubuntu"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/","url":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/","name":"How to Install and Configure Docker Compose on Ubuntu 20.04 | LinuxHostSupport","isPartOf":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/#primaryimage"},"image":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/#primaryimage"},"thumbnailUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-and-configure-docker-compose-on-ubuntu-20.04.jpg","datePublished":"2021-10-30T17:30:00+00:00","dateModified":"2022-06-09T06:08:18+00:00","author":{"@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb"},"description":"Looking to find a way to install and configure Docker Compose on Ubuntu 20.04 OS? This tutorial explains it, step by step.","breadcrumb":{"@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/#primaryimage","url":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-and-configure-docker-compose-on-ubuntu-20.04.jpg","contentUrl":"https:\/\/linuxhostsupport.com\/blog\/wp-content\/uploads\/2021\/10\/how-to-install-and-configure-docker-compose-on-ubuntu-20.04.jpg","width":742,"height":372,"caption":"how to install and configure docker compose on ubuntu 20.04"},{"@type":"BreadcrumbList","@id":"https:\/\/linuxhostsupport.com\/blog\/how-to-install-and-configure-docker-compose-on-ubuntu-20-04\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/linuxhostsupport.com\/blog\/"},{"@type":"ListItem","position":2,"name":"How to Install and Configure Docker Compose on Ubuntu 20.04"}]},{"@type":"WebSite","@id":"https:\/\/linuxhostsupport.com\/blog\/#website","url":"https:\/\/linuxhostsupport.com\/blog\/","name":"LinuxHostSupport","description":"Linux Tutorials and Guides","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/linuxhostsupport.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/linuxhostsupport.com\/blog\/#\/schema\/person\/53a9571ea078cdf350137a1e97423cfb","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/ed83c63a34114218f977e1f913be03906d17c7d9c800788fcac345f5edaf6cfa?s=96&d=mm&r=g","caption":"admin"},"url":"https:\/\/linuxhostsupport.com\/blog\/author\/r0s3admin\/"}]}},"_links":{"self":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1551","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/comments?post=1551"}],"version-history":[{"count":4,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1551\/revisions"}],"predecessor-version":[{"id":1698,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/posts\/1551\/revisions\/1698"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media\/1581"}],"wp:attachment":[{"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/media?parent=1551"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/categories?post=1551"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxhostsupport.com\/blog\/wp-json\/wp\/v2\/tags?post=1551"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}