<?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>DEV Community: Romil Lodaya</title>
    <description>The latest articles on DEV Community by Romil Lodaya (@theromie).</description>
    <link>https://dev.to/theromie</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%2F122432%2F9691841f-58ad-4822-9d7b-0543601a3243.png</url>
      <title>DEV Community: Romil Lodaya</title>
      <link>https://dev.to/theromie</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/theromie"/>
    <language>en</language>
    <item>
      <title>Push Docker image to Azure Container Registry</title>
      <dc:creator>Romil Lodaya</dc:creator>
      <pubDate>Sat, 16 Oct 2021 07:36:02 +0000</pubDate>
      <link>https://dev.to/theromie/push-docker-image-to-azure-container-registry-3d7c</link>
      <guid>https://dev.to/theromie/push-docker-image-to-azure-container-registry-3d7c</guid>
      <description>&lt;p&gt;If you are already familiar with Docker and Docker Hub then in this post I’d like to introduce the Azure Container Registry which is an alternative to the well-known Docker Hub.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Things required before starting:&lt;/strong&gt;&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;Docker Desktop&lt;/li&gt;
&lt;li&gt;Azure CLI&lt;/li&gt;
&lt;li&gt;Azure Account&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;In order to start with Azure Container Registry, you need an Azure account which you can create easily with FREE Credits and also ACR is a very cheap service. Once you logged into Azure, Navigate to Azure Container Registry by clicking on &lt;strong&gt;New --&amp;gt; Search --&amp;gt; type Azure Container Registry&lt;/strong&gt;. After that create a new ACR by filling in all details you want to add but make sure you enable admin access. After Two or three minutes your ACR will be created.&lt;/p&gt;

&lt;p&gt;Once you created a resource navigate Access Keys to get the Login server, Username, and password which is required for the command line push your local Docker image to ACR.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnxafy6jh8v4aj2u0dszg.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fnxafy6jh8v4aj2u0dszg.png" alt="Fig 1:Docker Login"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Type Above fig command and replace [login-server] with your ACR resource EG: &lt;strong&gt;firstapp.azureacr.io&lt;/strong&gt; [username] with firstapp and [password] with the hash password. Once completed, you should see Login succeeded! Message. After this you need to build your docker image with this command&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;docker build –f ./Dockerfile . –t node_vue_app
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm6cfdcsht3hvx18jc8rs.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fm6cfdcsht3hvx18jc8rs.png" alt="Fig 2: Docker Tag to ACR resource"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;Final step is to push your local Docker image to ACR. Follow below image command to push. Keep in mind though that these repositories are private by default, which means that you have to perform authentication first.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1oayrbphsb03cmjw8t72.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/dynamic/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1oayrbphsb03cmjw8t72.png" alt="Fig 3: Docker Push to ACR resource"&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;And that’s it. You can make use of this container registry just like you used. In Part 2 we will see how we can deploy same thing using CI/CD with GitHub Workflow&lt;/p&gt;

</description>
      <category>azure</category>
      <category>docker</category>
      <category>node</category>
      <category>vue</category>
    </item>
  </channel>
</rss>
