<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Docker - 标签 - 研发日志 · R&amp;D Log</title><link>https://rd163.visword.com/tags/docker/</link><description>Docker - 标签 - 研发日志 · R&amp;D Log</description><generator>Hugo -- gohugo.io</generator><language>zh-CN</language><managingEditor>whutluohui@gmail.com (小智晖)</managingEditor><webMaster>whutluohui@gmail.com (小智晖)</webMaster><copyright>本作品采用知识共享署名-非商业性使用 4.0 国际许可协议进行许可。</copyright><lastBuildDate>Wed, 15 Oct 2025 00:00:00 +0800</lastBuildDate><atom:link href="https://rd163.visword.com/tags/docker/" rel="self" type="application/rss+xml"/><item><title>Docker Desktop 开源替代方案</title><link>https://rd163.visword.com/posts/open-source-alternatives-for-docker-desktop/</link><pubDate>Wed, 15 Oct 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/open-source-alternatives-for-docker-desktop/</guid><description>&lt;p>Docker Desktop 一直是 macOS 和 Windows 上最便利的容器开发环境，但自 2021 年 8 月 31 日 Docker 调整订阅条款后，员工数 ≥ 250 人&lt;strong>或&lt;/strong>年营收 ≥ 1000 万美元的企业必须购买付费订阅才能合规使用。Docker Engine 本身仍是 Apache 2.0 开源，但 Docker Desktop 这一桌面发行版不再免费。这一变化促使社区涌现出一批高质量的开源替代方案。&lt;/p></description></item><item><title>Boinc 后台服务搭建</title><link>https://rd163.visword.com/posts/distributed-computation-boinc-server-setup/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/distributed-computation-boinc-server-setup/</guid><description><![CDATA[<h2 id="源码编译安装部署" class="headerLink">
    <a href="#%e6%ba%90%e7%a0%81%e7%bc%96%e8%af%91%e5%ae%89%e8%a3%85%e9%83%a8%e7%bd%b2" class="header-mark"></a>源码编译安装部署</h2><p>参考  <a href="https://boinc.berkeley.edu/trac/wiki/ServerIntro" target="_blank" rel="noopener noreferrer">Boinc Server搭建</a></p>
<p><strong>用户和组</strong></p>
<p>BOINC server programs 运行需要两个不同的用户账号:</p>
<ul>
<li>Web账号： 即Apache http服务需要的账号， 调度程序、文件上传以及Web程序使用该账号运行 (不同Linux发行版该账号可能不同，如 Fedora 叫：&lsquo;apache&rsquo;;  Debian 叫 &lsquo;www-data&rsquo;).</li>
<li>项目账号： 其它程序的运行，主要是任务管理程序， 该账号不建议用root， 可以用一个已经存在的用户账号或者新建一个账号，如 boincadm。</li>
</ul>
<p>创建用户</p>]]></description></item><item><title>dive</title><link>https://rd163.visword.com/posts/docker-dive/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/docker-dive/</guid><description>&lt;p>在写 Dockerfile 时,我们经常会遇到一个问题:镜像构建出来后,只能看到一个最终体积,却不知道每一层(layer)到底加了什么、改了什么、又被覆盖或删除了什么。&lt;code>docker history&lt;/code> 只能给出粗略的命令和尺寸,无法看到具体的文件变化。&lt;/p></description></item><item><title>django-cms</title><link>https://rd163.visword.com/posts/django-cms-intro/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/django-cms-intro/</guid><description>&lt;p>由 Django 编写的企业级 CMS(Content Management System，内容管理系统),它功能实用、安全可靠，支持拖拽上传图片、轮播图、Docker 部署等功能，可轻松进行二次开发，多用于构建企业官网，比如：国家地理（National Geographic）、NASA、L&amp;rsquo;Oréal、Canonical、PBS 等机构的网站都基于它开发而成。本文整理其背景、核心概念与本地启动方式，方便快速评估是否适合自己的项目。&lt;/p></description></item><item><title>docker-compose 简介</title><link>https://rd163.visword.com/posts/docker-compose-intro/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/docker-compose-intro/</guid><description><![CDATA[<h2 id="docker-compose-中-volumes-参数说明" class="headerLink">
    <a href="#docker-compose-%e4%b8%ad-volumes-%e5%8f%82%e6%95%b0%e8%af%b4%e6%98%8e" class="header-mark"></a>docker-compose 中 volumes 参数说明</h2><p>docker-compose 通过 <code>volumes</code> 配置数据卷来实现数据持久化。常见有两种写法。</p>
<p><strong>第一种：本地路径直接挂载（bind mount）</strong></p>]]></description></item><item><title>Docker容器时间如何与宿主机同步问题解决方案</title><link>https://rd163.visword.com/posts/how-to-fix-docker-timezone/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/how-to-fix-docker-timezone/</guid><description>&lt;p>容器默认时区是 UTC（Coordinated Universal Time，协调世界时），而宿主机在国内一般配置为 &lt;code>Asia/Shanghai&lt;/code>，两者正好相差 8 小时——这是大多数 Java/Python/Go 应用日志时间、定时任务（cron）触发时间、数据库时间戳对不上的根本原因。本文先讲清楚根因，再给出五种常见的同步方案及取舍。&lt;/p></description></item><item><title>PHP + Nginx 部署模式总览</title><link>https://rd163.visword.com/posts/php-nginx-deploy/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/php-nginx-deploy/</guid><description>&lt;p>在生产环境部署 PHP 应用时，Nginx 与 PHP-FPM(FastCGI Process Manager)的组合是最主流的方案。PHP-FPM 自 PHP 5.3.3 起就已经合并进 PHP 核心代码库(源码位于 &lt;code>sapi/fpm/&lt;/code>),通过 FastCGI 协议与 Web 服务器通信，负责管理 worker 进程池来执行 PHP 脚本。&lt;/p></description></item><item><title>WordPress 安装配置实践</title><link>https://rd163.visword.com/posts/wordpress-setup/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/wordpress-setup/</guid><description>&lt;p>WordPress 的部署方式相当灵活，既可以一条命令在本地起一个测试站，也可以借助云厂商的应用镜像快速搭建生产站点。本文整理三种实际使用过的安装方式，并对比其适用场景。前置的环境要求（PHP 7.4+/8.x、MySQL 5.5+/MariaDB、Apache 或 Nginx）在《为什么选择 WordPress》一文中已有说明，这里不再赘述。&lt;/p></description></item><item><title>如何使用主机当前用户运行 docker</title><link>https://rd163.visword.com/posts/run-docker-with-same-host-user/</link><pubDate>Sun, 12 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/run-docker-with-same-host-user/</guid><description>&lt;p>当我们在 Docker 容器中挂载宿主机目录时，如果容器内进程默认以 root 身份运行，新生成的文件会属于 root，宿主机当前用户往往无权读写。为了避免这种权限错乱，我们需要让容器内的进程以宿主机当前用户的 UID/GID 运行。下面提供两种方法。&lt;/p></description></item><item><title>Blender 简介</title><link>https://rd163.visword.com/posts/blender/</link><pubDate>Fri, 10 Jan 2025 00:00:00 +0800</pubDate><author><name>小智晖</name></author><guid>https://rd163.visword.com/posts/blender/</guid><description><![CDATA[<p>Blender 是一款免费开源（GPL-3.0 协议）的 3D 创作套件（3D creation suite），由 Blender Foundation 维护。它并非单一的建模工具，而是覆盖了整个 3D 制作管线：建模（modeling）、绑骨（rigging）、动画（animation）、模拟（simulation）、渲染（rendering）、合成（compositing）、运动跟踪（motion tracking）以及视频剪辑（video editing）。官方将其定位为&quot;the free and open source 3D creation suite&quot;。</p>]]></description></item></channel></rss>