<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>Docker on Bits Thoughts &amp; More, hugo based</title><link>https://997f8fd8.myblog-1k6.pages.dev/tags/docker/</link><description>Recent content in Docker on Bits Thoughts &amp; More, hugo based</description><generator>Hugo -- gohugo.io</generator><language>en-us</language><lastBuildDate>Wed, 03 Apr 2024 00:00:00 +0000</lastBuildDate><atom:link href="https://997f8fd8.myblog-1k6.pages.dev/tags/docker/index.xml" rel="self" type="application/rss+xml"/><item><title>letsencrypt and traefik with docker compose</title><link>https://997f8fd8.myblog-1k6.pages.dev/posts/docker-compose-letsencrypt-and-traefik/</link><pubDate>Wed, 03 Apr 2024 00:00:00 +0000</pubDate><guid>https://997f8fd8.myblog-1k6.pages.dev/posts/docker-compose-letsencrypt-and-traefik/</guid><description>
&lt;h2 id="problem-statement"&gt;
problem statement
&lt;a href="#problem-statement" class="h-anchor" aria-hidden="true"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;In a free tier oci instance I wanted to have a single point of entry with TLS and valid certs
I also wanted to have multiple containers served using a wildcard domain.
Also needed to be able to add new containers and immediately have them available with cert and fqdn&lt;/p&gt;
&lt;h2 id="bom"&gt;
BOM
&lt;a href="#bom" class="h-anchor" aria-hidden="true"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;ul&gt;
&lt;li&gt;traefik&lt;/li&gt;
&lt;li&gt;duckdns&lt;/li&gt;
&lt;li&gt;letsencrypt&lt;/li&gt;
&lt;li&gt;docker compose&lt;/li&gt;
&lt;li&gt;env-file for docker compose&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="docker-compose"&gt;
docker compose
&lt;a href="#docker-compose" class="h-anchor" aria-hidden="true"&gt;#&lt;/a&gt;
&lt;/h2&gt;
&lt;p&gt;This is the choice for deploying services.&lt;/p&gt;</description></item><item><title>Docker Registry</title><link>https://997f8fd8.myblog-1k6.pages.dev/posts/docker-registry/</link><pubDate>Mon, 01 Apr 2019 00:00:00 +0000</pubDate><guid>https://997f8fd8.myblog-1k6.pages.dev/posts/docker-registry/</guid><description>
&lt;h1 id="how-to-move-a-docker-image-to-another-registry-example-push-to-localhost-registry"&gt;
how to move a docker image to another registry (example push to localhost registry)
&lt;a href="#how-to-move-a-docker-image-to-another-registry-example-push-to-localhost-registry" class="h-anchor" aria-hidden="true"&gt;#&lt;/a&gt;
&lt;/h1&gt;
&lt;p&gt;first you need to tag an existing image to another name containing the target registry
do a &lt;code&gt;docker images&lt;/code&gt; to get a list of images already downloaded
command below tags &lt;code&gt;redis:3-alpine&lt;/code&gt; as &lt;code&gt;localhost:5000/redis:3-alpine&lt;/code&gt;&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;docker tag redis:3-alpine localhost:5000/redis:3-alpine
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;then just &lt;code&gt;push&lt;/code&gt; the new tag&lt;/p&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;docker push localhost:5000/redis:3-alpine
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;h1 id="and-with-a-curl-you-can-see-the-output-of-the-catalog-in-our-127001-localhost-registry"&gt;
and with a curl you can see the output of the catalog in our 127.0.0.1 (localhost) registry
&lt;a href="#and-with-a-curl-you-can-see-the-output-of-the-catalog-in-our-127001-localhost-registry" class="h-anchor" aria-hidden="true"&gt;#&lt;/a&gt;
&lt;/h1&gt;
&lt;div class="highlight"&gt;&lt;pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;-webkit-text-size-adjust:none;"&gt;&lt;code class="language-sh" data-lang="sh"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;curl http://127.0.0.1:5000/v2/_catalog
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;more info : &lt;code&gt;https://stackoverflow.com/questions/31251356/how-to-get-a-list-of-images-on-docker-registry-v2&lt;/code&gt;&lt;/p&gt;</description></item></channel></rss>