<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0">
    <channel>
        <title>Docker - 标签 - lihuu — 系统工程、AI 工具链与 Rust 开发博客</title>
        <link>https://silentstormic.top/tags/Docker/</link>
        <description>Docker - 标签 - lihuu — 系统工程、AI 工具链与 Rust 开发博客</description>
        <generator>Hugo -- gohugo.io</generator><language>zh-CN</language><lastBuildDate>Tue, 06 May 2025 15:14:06 &#43;0800</lastBuildDate><atom:link href="https://silentstormic.top/tags/Docker/" rel="self" type="application/rss+xml" /><item>
    <title>Mac平台虚拟化神器：Orbstack</title>
    <link>https://silentstormic.top/post/orbstack/</link>
    <pubDate>Tue, 06 May 2025 15:14:06 &#43;0800</pubDate>
    <author>lihuu</author>
    <guid>https://silentstormic.top/post/orbstack/</guid>
    <description><![CDATA[<p>OrbStack](<a href="https://orbstack.dev/" target="_blank" rel="noopener noreffer ">https://orbstack.dev/</a>) 是一种快速、轻便和简单的方式来运行容器和 Linux 机器。Mac 平台中强烈建议用它替换 <a href="https://www.docker.com/products/docker-desktop/" target="_blank" rel="noopener noreffer ">Docker Desktop</a>，它比 Docker Desktop 占用更少的资源，官方有对比，感兴趣可以在这里查看https://docs.orbstack.dev/benchmarks，从图中对比来看，直接吊打。</p>
<p>OrbStack 占用的资源很少。OrbStack 在空闲时使用大约 0.1% 的 CPU，通常会降至 0%，这比大多数应用程序的后台 CPU 使用率更低！并且还可以在运行容器或者虚拟机的时候使用 <code>orb config</code>命令来限制 cpu 的最大使用量。当然啦，如果我们想尽量减少 CPU 的占用，那停止任何没有使用的容器或者关闭任何没有使用的虚拟机。OrbStack 是按需分配内存的，并会根据需要增长，并且后面没有使用的内存会自动返回给 macOS，这对于内存堪比黄金的 mac 电脑，真的是非常适合。OrbStack 磁盘占用也比较少，全新安装的 OrbStack 占用不到 10MB 的磁盘空间，并且它采用了完全动态的磁盘管理，几乎没有额外开销，其占用空间会根据需要自动增减。</p>]]></description>
</item>
<item>
    <title>Docker 入门：从安装到实战的完整指南</title>
    <link>https://silentstormic.top/post/docker-getting-started/</link>
    <pubDate>Sun, 06 Jun 2021 21:32:21 &#43;0800</pubDate>
    <author>lihuu</author>
    <guid>https://silentstormic.top/post/docker-getting-started/</guid>
    <description><![CDATA[<p>Docker 是目前最主流的容器化工具，它将应用及其依赖打包成一个轻量级、可移植的容器，解决&quot;在我机器上能跑&quot;的经典问题。相比传统虚拟机，Docker 容器共享宿主机内核，启动速度从分钟级降到秒级，资源占用也大幅降低。</p>
<h2 id="核心概念">核心概念</h2>
<p>在使用 Docker 之前，需要理解三个核心概念：</p>
<table>
  <thead>
      <tr>
          <th>概念</th>
          <th>说明</th>
          <th>类比</th>
      </tr>
  </thead>
  <tbody>
      <tr>
          <td><strong>镜像（Image）</strong></td>
          <td>只读的应用模板，包含代码、运行时、依赖</td>
          <td>Java 的 <code>.class</code> 文件</td>
      </tr>
      <tr>
          <td><strong>容器（Container）</strong></td>
          <td>镜像的运行实例，可读写</td>
          <td>JVM 中运行的进程</td>
      </tr>
      <tr>
          <td><strong>仓库（Registry）</strong></td>
          <td>存储和分发镜像的服务</td>
          <td>Maven Central</td>
      </tr>
  </tbody>
</table>
<p>它们的关系：从<strong>仓库</strong>拉取<strong>镜像</strong>，用镜像创建<strong>容器</strong>运行。</p>]]></description>
</item>
</channel>
</rss>
