<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Install Docker Compose on RHEL 8 Archives - Linux Windows and android Tutorials</title>
	<atom:link href="https://www.osradar.com/tag/install-docker-compose-on-rhel-8/feed/" rel="self" type="application/rss+xml" />
	<link>https://www.osradar.com</link>
	<description>tutorials and news and Seurity</description>
	<lastBuildDate>Mon, 02 Dec 2019 20:29:59 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=5.8.12</generator>
	<item>
		<title>How To Install Latest Docker Compose on Ubuntu 19.04 / CentOS 8 / Debian 10 / Fedora 30</title>
		<link>https://www.osradar.com/how-to-install-latest-docker-compose-on-ubuntu-19-04-centos-8-debian-10-fedora-30/</link>
					<comments>https://www.osradar.com/how-to-install-latest-docker-compose-on-ubuntu-19-04-centos-8-debian-10-fedora-30/#respond</comments>
		
		<dc:creator><![CDATA[sabi]]></dc:creator>
		<pubDate>Mon, 02 Dec 2019 20:29:56 +0000</pubDate>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Technology]]></category>
		<category><![CDATA[Tools]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[Docker Compose Installation]]></category>
		<category><![CDATA[Dockers]]></category>
		<category><![CDATA[install Docker compose on CentOS]]></category>
		<category><![CDATA[Install Docker Compose on Debian]]></category>
		<category><![CDATA[Install Docker compose on linux]]></category>
		<category><![CDATA[Install Docker Compose on RHEL 8]]></category>
		<category><![CDATA[Install Docker Compose on Ubuntu]]></category>
		<category><![CDATA[unix]]></category>
		<guid isPermaLink="false">https://www.osradar.com/?p=16124</guid>

					<description><![CDATA[<p>In our previous tutorial we&#8217;ve seen How To Install Docker on Ubuntu 16.04 18.04 / 19.04. Now we&#8217;ll move further to Install Docker Compose on different Linux distributions like Ubuntu, Debian, CentOS and Debian. What is Docker Compose? Docker Compose is a tool that provides us the facility to define and run multi-container Docker application. [&#8230;]</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-latest-docker-compose-on-ubuntu-19-04-centos-8-debian-10-fedora-30/">How To Install Latest Docker Compose on Ubuntu 19.04 / CentOS 8 / Debian 10 / Fedora 30</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></description>
										<content:encoded><![CDATA[
<p>In our previous tutorial we&#8217;ve seen <a href="https://www.osradar.com/?p=16122">How To Install Docker on Ubuntu 16.04 18.04 / 19.04.</a> Now we&#8217;ll move further to Install Docker Compose on different Linux distributions like Ubuntu, Debian, CentOS and Debian.</p>



<h4><strong>What is Docker Compose?</strong></h4>



<p><strong>Docker Compose</strong> is a tool that provides us the facility to  define and run multi-container Docker application. A <strong>YAML</strong> file is the configuration file used to configure your application&#8217;s services.<br> So, we are going to Install Docker Compose in as much details as possible so you can easily understand and Install it. For this Installation we&#8217;ll check Github API releases page for our project. After it we&#8217;ll pull out the latest binary file for our Installation process. So, follow the below steps to move further.</p>



<h3><strong>Step 1: Installing Latest Docker Compose on Linux</strong></h3>



<p><strong>Requirements:</strong></p>



<p>You must have installed Curl on your system for this operation.<br>Access to the root or user with root privileges.</p>



<pre class="wp-block-verse">---- CentOS / RHEL -----<br> $ sudo yum -y install curl<br> ---- Debian / Ubuntu ----<br> $ sudo apt install -y curl <br> ----- Fedora -----<br> $ sudo dnf -y install curl </pre>



<p>After Installing curl move to the next point which is Downloading the latest Compose on your Linux Machine.</p>



<pre class="wp-block-verse">curl -s <a href="https://api.github.com/repos/docker/compose/releases/latest">https://api.github.com/repos/docker/compose/releases/latest</a> \<br>   | grep browser_download_url \<br>   | grep docker-compose-Linux-x86_64 \<br>   | cut -d '"' -f 4 \<br>   | wget -qi -</pre>



<p>Make sure to make binary file executable.</p>



<pre class="wp-block-verse">chmod +x docker-compose-Linux-x86_64</pre>



<p>Now, move the file to your PATH.</p>



<pre class="wp-block-verse">sudo mv docker-compose-Linux-x86_64 /usr/local/bin/docker-compose</pre>



<p>Check the version you&#8217;ve installed.</p>



<pre class="wp-block-verse">docker-compose version</pre>



<h3><strong>Step 2: Configure Compose Command-line completion.</strong></h3>



<p>Compose has command completion for the bash &amp; zsh shell.</p>



<h5><strong>Bash users.</strong></h5>



<p>Place the completion script in <strong>/etc/bash_completion.d/</strong></p>



<pre class="wp-block-verse">sudo curl -L <a href="https://raw.githubusercontent.com/docker/compose/master/contrib/completion/bash/docker-compose">https://raw.githubusercontent.com/docker/compose/master/contrib/completion/bash/docker-compose</a> -o /etc/bash_completion.d/docker-compose</pre>



<p>Source the file or re-login to enjoy completion features.</p>



<pre class="wp-block-verse">source /etc/bash_completion.d/docker-compose</pre>



<h5><strong>Zsh users</strong></h5>



<p>Download the completion script in your <strong>~/.zsh/completion/</strong></p>



<pre class="wp-block-verse">mkdir -p ~/.zsh/completion</pre>



<pre class="wp-block-verse">curl -L <a href="https://raw.githubusercontent.com/docker/compose/master/contrib/completion/zsh/_docker-compose">https://raw.githubusercontent.com/docker/compose/master/contrib/completion/zsh/_docker-compose</a> &gt; ~/.zsh/completion/_docker-compose</pre>



<p>Include the directory in your <strong>$fpath</strong> by adding in <strong>~/.zshrc</strong></p>



<pre class="wp-block-verse">fpath=(~/.zsh/completion $fpath)</pre>



<p>Double check that <strong>compinit</strong> is loaded or load it by adding in<strong> ~/.zshrc</strong>.</p>



<pre class="wp-block-verse">autoload -Uz compinit &amp;&amp; compinit -i</pre>



<p>After-it reload your shell.</p>



<pre class="wp-block-verse">exec $SHELL -l</pre>



<h3><strong>Step 3: Test Docker Compose Installation</strong></h3>



<p>Make a file for testing docker compose.</p>



<pre class="wp-block-verse">vim docker-compose.yml</pre>



<p>Copy &amp; paste the below data in the file.</p>



<pre class="wp-block-verse">version: '3'  <br>
services:<br>
  web:<br>
    image: nginx:latest<br>
    ports:<br>
     - "8080:80"<br>
    links:<br>
     - php<br>
  php:<br>
    image: php:7-fpm</pre>



<p>Start the containers services.</p>



<pre class="wp-block-verse">$ docker-compose up -d<br>Starting root_php_1 … done<br>Starting root_web_1 … done</pre>



<p><strong>Output:</strong></p>



<p>Show running Containers</p>



<pre class="wp-block-verse">$ docker-compose ps<br>    Name                 Command              State          Ports        <br> root_php_1   docker-php-entrypoint php-fpm   Up      9000/tcp            <br> root_web_1   nginx -g daemon off;            Up      0.0.0.0:8080-&gt;80/tcp</pre>



<p>Destroy Containers.</p>



<pre class="wp-block-verse"> $ docker-compose stop<br> Stopping root_web_1 … done<br> Stopping root_php_1 … done <br><br>$ docker-compose rm -f<br> Going to remove root_web_1, root_php_1<br> Removing root_web_1 … done<br> Removing root_php_1 … done</pre>



<p>For detailed description or learning more about <a href="https://docs.docker.com/">Docker documentation</a> &amp; <a href="https://docs.docker.com/compose/" target="_blank" rel="noreferrer noopener" aria-label="Docker Compose documentation (opens in a new tab)">Docker Compose documentation</a> visit their official page .</p>
<p>The post <a rel="nofollow" href="https://www.osradar.com/how-to-install-latest-docker-compose-on-ubuntu-19-04-centos-8-debian-10-fedora-30/">How To Install Latest Docker Compose on Ubuntu 19.04 / CentOS 8 / Debian 10 / Fedora 30</a> appeared first on <a rel="nofollow" href="https://www.osradar.com">Linux  Windows and android  Tutorials</a>.</p>
]]></content:encoded>
					
					<wfw:commentRss>https://www.osradar.com/how-to-install-latest-docker-compose-on-ubuntu-19-04-centos-8-debian-10-fedora-30/feed/</wfw:commentRss>
			<slash:comments>0</slash:comments>
		
		
			</item>
	</channel>
</rss>
