<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>Docker on php-tips.com</title>
    <link>https://php-tips.com/tags/docker/</link>
    <description>Recent content in Docker on php-tips.com</description>
    <generator>Hugo</generator>
    <language>ja</language>
    <lastBuildDate>Wed, 01 Apr 2026 20:32:55 +0900</lastBuildDate>
    <atom:link href="https://php-tips.com/tags/docker/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Docker マルチステージビルドで Node.js イメージを軽量化する</title>
      <link>https://php-tips.com/2026/04/01/docker-multistage-build-nodejs/</link>
      <pubDate>Wed, 01 Apr 2026 20:32:55 +0900</pubDate>
      <guid>https://php-tips.com/2026/04/01/docker-multistage-build-nodejs/</guid>
      <description>&lt;p&gt;&lt;strong&gt;TL;DR:&lt;/strong&gt; Dockerfile でマルチステージビルドを使い、「ビルド用ステージ」と「実行用ステージ」を分けると devDependencies やビルドツールが最終イメージに残らなくなる。あるプロジェクトでは 2GB 弱 → 1GB 以下と半分以下にできた。&lt;/p&gt;</description>
    </item>
    <item>
      <title>Let&amp;#8217;s Encrypt発行の証明書を使用しているプライベートdocker registryを使う</title>
      <link>https://php-tips.com/2018/07/31/lets-encrypt-with-private-docker-registry/</link>
      <pubDate>Tue, 31 Jul 2018 09:59:41 +0900</pubDate>
      <guid>https://php-tips.com/2018/07/31/lets-encrypt-with-private-docker-registry/</guid>
      <description>&lt;p&gt;&lt;code&gt;docker login registry.example.com:5000&lt;/code&gt; で以下のような証明書エラーが出る人向け。&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Error response from daemon: Get https://registry.example.com:5000/v2/: x509: certificate signed by unknown authority
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;docker-for-mac&#34;&gt;Docker for Mac&lt;/h2&gt;
&lt;p&gt;Step 1. &lt;a href=&#34;https://letsencrypt.org/certificates/&#34;&gt;Chain of Trust - Let&amp;rsquo;s Encrypt - Free SSL/TLS Certificates&lt;/a&gt; から次の中間証明書を取得&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Let’s Encrypt Authority X3 (IdenTrust cross-signed)&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;証明書のリンク先は拡張子が &lt;code&gt;.txt&lt;/code&gt; となっているので、拡張子 &lt;code&gt;.pem&lt;/code&gt; に変更して保存する。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
