<?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>容器 on luanrz's blog</title><link>https://luanrz.github.io/tags/%E5%AE%B9%E5%99%A8/</link><description>Recent content in 容器 on luanrz's blog</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Sat, 01 Aug 2026 17:17:00 +0800</lastBuildDate><atom:link href="https://luanrz.github.io/tags/%E5%AE%B9%E5%99%A8/index.xml" rel="self" type="application/rss+xml"/><item><title>命令备忘录：Docker</title><link>https://luanrz.github.io/posts/%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7/%E5%91%BD%E4%BB%A4%E5%A4%87%E5%BF%98%E5%BD%95docker/</link><pubDate>Sat, 01 Aug 2026 17:17:00 +0800</pubDate><guid>https://luanrz.github.io/posts/%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7/%E5%91%BD%E4%BB%A4%E5%A4%87%E5%BF%98%E5%BD%95docker/</guid><description>&lt;blockquote&gt;
&lt;p&gt;详见&lt;a href="https://github.com/luanrz/hello-docker"&gt;github仓库&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h2 id="前言"&gt;前言&lt;/h2&gt;
&lt;p&gt;约定 &lt;code&gt;docker run&lt;/code&gt; 的参数顺序如下：&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;运行模式：-d / -it / &amp;ndash;rm&lt;/li&gt;
&lt;li&gt;容器标识：&amp;ndash;name&lt;/li&gt;
&lt;li&gt;网络配置：-p / &amp;ndash;net&lt;/li&gt;
&lt;li&gt;存储挂载：-v&lt;/li&gt;
&lt;li&gt;环境变量：-e&lt;/li&gt;
&lt;li&gt;资源限制：-m / &amp;ndash;cpus&lt;/li&gt;
&lt;li&gt;特权与硬件：&amp;ndash;device / &amp;ndash;cap-add&lt;/li&gt;
&lt;li&gt;其它：&amp;ndash;stop-timeout&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;约定 &lt;code&gt;docker-compose.yml&lt;/code&gt; 的参数顺序如下：&lt;/p&gt;</description></item><item><title>Distrobox快速上手</title><link>https://luanrz.github.io/posts/%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7/distrobox%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B/</link><pubDate>Tue, 23 Jun 2026 11:01:18 +0800</pubDate><guid>https://luanrz.github.io/posts/%E5%BC%80%E5%8F%91%E5%B7%A5%E5%85%B7/distrobox%E5%BF%AB%E9%80%9F%E4%B8%8A%E6%89%8B/</guid><description>&lt;p&gt;Distrobox是一个基于容器运行任意Linux发行版的工具。&lt;/p&gt;
&lt;h2 id="安装与启动distrobox"&gt;安装与启动Distrobox&lt;/h2&gt;
&lt;p&gt;（1）安装Distrobox&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-shell" data-lang="shell"&gt;&lt;span style="display:flex;"&gt;&lt;span&gt;sudo pacman -S distrobox podman
&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Distrobox支持的容器引擎有：docker、podman等，建议使用podman。&lt;/p&gt;</description></item></channel></rss>