<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Dockerfile - 标签 - 研发日志 · R&amp;D Log</title><link>https://rd163.visword.com/tags/dockerfile/</link><description>Dockerfile - 标签 - 研发日志 · 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>Sun, 12 Jan 2025 00:00:00 +0800</lastBuildDate><atom:link href="https://rd163.visword.com/tags/dockerfile/" rel="self" type="application/rss+xml"/><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></channel></rss>