<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>Forem: farid teymouri</title>
    <description>The latest articles on Forem by farid teymouri (@faridteymouri).</description>
    <link>https://forem.com/faridteymouri</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F342024%2F19535273-6df3-4f21-9345-81968e2452ac.jpg</url>
      <title>Forem: farid teymouri</title>
      <link>https://forem.com/faridteymouri</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://forem.com/feed/faridteymouri"/>
    <language>en</language>
    <item>
      <title>How to update Docker and Docker Compose on Ubuntu</title>
      <dc:creator>farid teymouri</dc:creator>
      <pubDate>Tue, 18 Jul 2023 17:54:54 +0000</pubDate>
      <link>https://forem.com/faridteymouri/how-to-update-docker-and-docker-compose-on-ubuntu-gam</link>
      <guid>https://forem.com/faridteymouri/how-to-update-docker-and-docker-compose-on-ubuntu-gam</guid>
      <description>&lt;h2&gt;
  
  
  Updating Docker:
&lt;/h2&gt;

&lt;p&gt;On Linux, you can update Docker using the package manager used to install it. For example, if you installed Docker using the apt package manager, you can update it using the following commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Update the package index
sudo apt update

# Upgrade Docker
sudo apt upgrade docker-ce
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;If you installed Docker using another package manager like yum or dnf (for CentOS/RHEL) or pacman (for Arch Linux), use the respective package manager's update command.&lt;/p&gt;

&lt;p&gt;On macOS, you can update Docker by downloading the latest Docker Desktop application from the Docker website and installing it.&lt;/p&gt;

&lt;p&gt;On Windows, you can update Docker by downloading the latest Docker Desktop application for Windows from the Docker website and installing it.&lt;/p&gt;

&lt;h2&gt;
  
  
  Updating Docker Compose:
&lt;/h2&gt;

&lt;p&gt;Docker Compose is a separate tool from Docker itself, and it requires a separate update process. To update Docker Compose, you can use the following commands:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;# Check the current version of Docker Compose
docker-compose version

# Download the latest version of Docker Compose
sudo curl -L "https://github.com/docker/compose/releases/latest/download/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose

# Apply executable permissions to the binary
sudo chmod +x /usr/local/bin/docker-compose

# Verify the installation
docker-compose version

&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The above commands will download the latest version of Docker Compose and replace the existing one, if any.&lt;/p&gt;

&lt;p&gt;Note: Before updating any software, it's always a good practice to check the official documentation for any specific instructions or compatibility requirements.&lt;/p&gt;

&lt;p&gt;Additionally, make sure to back up any important data or configurations related to Docker and Docker Compose before performing the update to avoid any potential data loss or conflicts.&lt;/p&gt;

</description>
      <category>docker</category>
      <category>ubuntu</category>
      <category>beginners</category>
      <category>linux</category>
    </item>
  </channel>
</rss>
