<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>docker相关文章列表 | 皇家元林</title>
	<atom:link href="https://hjyl.org/tags/docker/feed/" rel="self" type="application/rss+xml" />
	<link>https://hjyl.org</link>
	<description>刘元林的个人博客</description>
	<lastBuildDate>Wed, 25 Dec 2024 15:45:43 +0000</lastBuildDate>
	<language>zh-Hans</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://img.hjyl.org/uploads/2019/10/cropped-about-me-32x32.png</url>
	<title>docker相关文章列表 | 皇家元林</title>
	<link>https://hjyl.org</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>推荐一款LNMP 环境的开源面板——耗子面板</title>
		<link>https://hjyl.org/lnmp-haozi-panel/</link>
					<comments>https://hjyl.org/lnmp-haozi-panel/#comments</comments>
		
		<dc:creator><![CDATA[皇家元林]]></dc:creator>
		<pubDate>Wed, 25 Dec 2024 15:45:37 +0000</pubDate>
				<category><![CDATA[元林手札]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[go语言]]></category>
		<category><![CDATA[LNMP]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[Nginx]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[SSL证书自动化]]></category>
		<category><![CDATA[耗子面板]]></category>
		<category><![CDATA[运维面板]]></category>
		<guid isPermaLink="false">https://hjyl.org/?p=5633</guid>

					<description><![CDATA[前两天从毫秒镜像发现他们合作的一款运维面板——耗子面板挺不错的。不知道有多少人在用，别的不说，WeAvatar [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>前两天从<a href="https://hjyl.org/go/aHR0cHM6Ly8xbXMucnVu" rel="nofollow" target="_blank">毫秒镜像</a>发现他们合作的一款运维面板——耗子面板挺不错的。不知道有多少人在用，别的不说，WeAvatar就是他们的。这是一款基于go语言开发的，在Linux系统，go语言开发的软件都很好用，譬如hugo、frp、Artalk等。面板很清爽，无广告，分类也清楚，简单上手快，安装的PHP、nginx、MySQL等软件版本都是最新的，下载编译的速度也挺快。支持docker、SSL证书自动化。唯一缺点我感觉就是docker没有compose.yml安装容器，这点fnos就比较方便。对于常用docker的玩家比较不友好吧。</p>



<p>官方网站：<a href="https://hjyl.org/go/aHR0cHM6Ly9yYXRwYW5lbC5naXRodWIuaW8v" rel="nofollow" target="_blank">https://ratpanel.github.io/</a></p>



<p>GitHub库：<a href="https://hjyl.org/go/aHR0cHM6Ly9naXRodWIuY29tL1RoZVROQi9wYW5lbC9yZWxlYXNlcy8=" rel="nofollow" target="_blank">https://github.com/TheTNB/panel/releases/</a></p>



<p>安装命令（一般 2 分钟内完成安装）：</p>



<pre class="wp-block-code"><code lang="bash" class="language-bash line-numbers">curl -fsLm 10 -o install.sh https://dl.cdn.haozi.net/panel/install.sh &amp;&amp; bash install.sh</code></pre>



<p>话不多说，可自行用虚拟机测试，仁者见仁吧，我截了几张图可以品一品。</p>



<figure class="wp-block-gallery has-nested-images columns-4 is-cropped wp-block-gallery-1 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1176" height="693" data-id="5634" src="https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214032_151.png"  class="wp-image-5634" title="wechat_2024 12 25_214032_151.png" alt="wechat_2024 12 25_214032_151.png" /><figcaption class="wp-element-caption">面板登录信息</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" width="3830" height="1955" data-id="5635" src="https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214206_276.png"  class="wp-image-5635" srcset="https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214206_276.png 3830w, https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214206_276-1536x784.png 1536w, https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214206_276-2048x1045.png 2048w" sizes="(max-width: 3830px) 100vw, 3830px" title="wechat_2024 12 25_214206_276.png" alt="wechat_2024 12 25_214206_276.png" /><figcaption class="wp-element-caption">面板主页</figcaption></figure>



<figure class="wp-block-image size-large"><img decoding="async" width="3803" height="1932" data-id="5641" src="https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_233956_379.png"  class="wp-image-5641" srcset="https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_233956_379.png 3803w, https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_233956_379-1536x780.png 1536w, https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_233956_379-2048x1040.png 2048w" sizes="(max-width: 3803px) 100vw, 3803px" title="wechat_2024 12 25_233956_379.png" alt="wechat_2024 12 25_233956_379.png" /><figcaption class="wp-element-caption">安装应用日志</figcaption></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="3795" height="1898" data-id="5639" src="https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214339_818.png"  class="wp-image-5639" srcset="https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214339_818.png 3795w, https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214339_818-1536x768.png 1536w, https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214339_818-2048x1024.png 2048w" sizes="auto, (max-width: 3795px) 100vw, 3795px" title="wechat_2024 12 25_214339_818.png" alt="wechat_2024 12 25_214339_818.png" /><figcaption class="wp-element-caption">应用列表1</figcaption></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="3821" height="1937" data-id="5638" src="https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214401_535.png"  class="wp-image-5638" srcset="https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214401_535.png 3821w, https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214401_535-1536x779.png 1536w, https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214401_535-2048x1038.png 2048w" sizes="auto, (max-width: 3821px) 100vw, 3821px" title="wechat_2024 12 25_214401_535.png" alt="wechat_2024 12 25_214401_535.png" /><figcaption class="wp-element-caption">应用列表2</figcaption></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="3810" height="1592" data-id="5637" src="https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214740_553.png"  class="wp-image-5637" srcset="https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214740_553.png 3810w, https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214740_553-1536x642.png 1536w, https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214740_553-2048x856.png 2048w" sizes="auto, (max-width: 3810px) 100vw, 3810px" title="wechat_2024 12 25_214740_553.png" alt="wechat_2024 12 25_214740_553.png" /><figcaption class="wp-element-caption">相关文件位置都在一块，管理方便</figcaption></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="3807" height="1811" data-id="5636" src="https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214859_927.png"  class="wp-image-5636" srcset="https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214859_927.png 3807w, https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214859_927-1536x731.png 1536w, https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_214859_927-2048x974.png 2048w" sizes="auto, (max-width: 3807px) 100vw, 3807px" title="wechat_2024 12 25_214859_927.png" alt="wechat_2024 12 25_214859_927.png" /><figcaption class="wp-element-caption">SSL证书提供商</figcaption></figure>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="3461" height="1956" data-id="5640" src="https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_220310_487.png"  class="wp-image-5640" srcset="https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_220310_487.png 3461w, https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_220310_487-1536x868.png 1536w, https://img.hjyl.org/uploads/2024/12/wechat_2024-12-25_220310_487-2048x1157.png 2048w" sizes="auto, (max-width: 3461px) 100vw, 3461px" title="wechat_2024 12 25_220310_487.png" alt="wechat_2024 12 25_220310_487.png" /><figcaption class="wp-element-caption">docker容器创建界面</figcaption></figure>
</figure>
<div id="content-copyright"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;font-size: 13px;">版权声明: </span><span style="font-size: 13px;">本文采用 <a href="https://hjyl.org/go/aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzMuMC8=" rel="nofollow" target="_blank">BY-NC-SA</a> 协议进行授权，如无注明均为原创，转载请注明转自 <a href="https://hjyl.org">皇家元林</a><br>本文链接: <a rel="bookmark" title="推荐一款LNMP 环境的开源面板——耗子面板" href="https://hjyl.org/lnmp-haozi-panel/">推荐一款LNMP 环境的开源面板——耗子面板</a></span></div>]]></content:encoded>
					
					<wfw:commentRss>https://hjyl.org/lnmp-haozi-panel/feed/</wfw:commentRss>
			<slash:comments>34</slash:comments>
		
		
			</item>
		<item>
		<title>docker还能这么用</title>
		<link>https://hjyl.org/docker-php-music-json/</link>
					<comments>https://hjyl.org/docker-php-music-json/#comments</comments>
		
		<dc:creator><![CDATA[皇家元林]]></dc:creator>
		<pubDate>Mon, 23 Dec 2024 16:08:31 +0000</pubDate>
				<category><![CDATA[元林手札]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[docker镜像]]></category>
		<category><![CDATA[json]]></category>
		<category><![CDATA[PHP]]></category>
		<category><![CDATA[音乐]]></category>
		<guid isPermaLink="false">https://hjyl.org/?p=5628</guid>

					<description><![CDATA[之前说过可以用php实现音乐列表json数据，现在音乐文件放在fnos里，alist能加载webdav访问fn [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>之前说过可以<a href="https://hjyl.org/php-json-list-music/">用php实现音乐列表json数据</a>，现在音乐文件放在fnos里，alist能加载webdav访问fnos里的音乐，但fnos本身没有php环境，不能用php。后来想到用docker创建php镜像，在php镜像里访问音乐文件夹，使用php命令搞定(>php music.php)。</p>



<p>顺便推荐一个docker镜像地址：<a href="https://hjyl.org/go/aHR0cHM6Ly8xbXMucnVuLw==" rel="nofollow" target="_blank">https://1ms.run/</a>，好厉害，能根据IP地址限制高速流量。如果有更好用的docker镜像，也欢迎推介。</p>
<div id="content-copyright"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;font-size: 13px;">版权声明: </span><span style="font-size: 13px;">本文采用 <a href="https://hjyl.org/go/aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzMuMC8=" rel="nofollow" target="_blank">BY-NC-SA</a> 协议进行授权，如无注明均为原创，转载请注明转自 <a href="https://hjyl.org">皇家元林</a><br>本文链接: <a rel="bookmark" title="docker还能这么用" href="https://hjyl.org/docker-php-music-json/">docker还能这么用</a></span></div>]]></content:encoded>
					
					<wfw:commentRss>https://hjyl.org/docker-php-music-json/feed/</wfw:commentRss>
			<slash:comments>11</slash:comments>
		
		
			</item>
		<item>
		<title>AtomHub-国内 docker镜像中心</title>
		<link>https://hjyl.org/atomhub-docker/</link>
					<comments>https://hjyl.org/atomhub-docker/#comments</comments>
		
		<dc:creator><![CDATA[皇家元林]]></dc:creator>
		<pubDate>Thu, 21 Dec 2023 13:08:22 +0000</pubDate>
				<category><![CDATA[元林手札]]></category>
		<category><![CDATA[AtomHub]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[镜像]]></category>
		<guid isPermaLink="false">https://hjyl.org/?p=4873</guid>

					<description><![CDATA[由开放原子开源基金会主导，华为、浪潮、DaoCloud、谐云、青云、飓风引擎以及 OpenSDV 开源联盟、o [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>由开放原子开源基金会主导，华为、浪潮、DaoCloud、谐云、青云、飓风引擎以及 OpenSDV 开源联盟、openEuler 社区、OpenCloudOS 社区等成员单位共同发起建设的 AtomHub 可信镜像中心正式开放公测。</p>



<p>地址：https://atomhub.openatom.cn/</p>



<p>不错的项目，都是大公司，喜欢 docker 的可以了解一下。暂时 docker 镜像比较少。</p>
<div id="content-copyright"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;font-size: 13px;">版权声明: </span><span style="font-size: 13px;">本文采用 <a href="https://hjyl.org/go/aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzMuMC8=" rel="nofollow" target="_blank">BY-NC-SA</a> 协议进行授权，如无注明均为原创，转载请注明转自 <a href="https://hjyl.org">皇家元林</a><br>本文链接: <a rel="bookmark" title="AtomHub-国内 docker镜像中心" href="https://hjyl.org/atomhub-docker/">AtomHub-国内 docker镜像中心</a></span></div>]]></content:encoded>
					
					<wfw:commentRss>https://hjyl.org/atomhub-docker/feed/</wfw:commentRss>
			<slash:comments>22</slash:comments>
		
		
			</item>
		<item>
		<title>恢复MySQL.ibd数据库</title>
		<link>https://hjyl.org/mysql-ibd-recovery/</link>
					<comments>https://hjyl.org/mysql-ibd-recovery/#comments</comments>
		
		<dc:creator><![CDATA[皇家元林]]></dc:creator>
		<pubDate>Sat, 16 Sep 2023 15:47:37 +0000</pubDate>
				<category><![CDATA[元林手札]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[FreshRSS]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PhpMyAdmin]]></category>
		<category><![CDATA[扩展名ibd]]></category>
		<category><![CDATA[数据库]]></category>
		<guid isPermaLink="false">https://hjyl.org/?p=4628</guid>

					<description><![CDATA[前两天服务器宕机，导致很多数据丢失，尤其是群晖里docker数据，譬如rss.iyl.me，好在映射在群晖文件 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>前两天服务器宕机，导致很多数据丢失，尤其是群晖里docker数据，譬如rss.iyl.me，好在映射在群晖文件夹里，我直接拷贝下来了。</p>



<p>之前数据库备份一直都是mysqldump命令或者phpMyAdmin导出来.sql及其压缩格式。今天我们来试试如何恢复MySQL/data文件夹下的数据库。</p>



<p>在之前<a href="https://hjyl.org/dsm-docker-mysql-phpmyadmin/">群晖docker安装MySQL和phpmyadmin</a>的文章里，介绍到MySQL的data路径/var/lib/mysql映射到/docker/mysql。</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-2 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><a href="https://img.hjyl.org/uploads/2023/09/20230916212453.png"><img loading="lazy" decoding="async" width="450" height="516" data-id="4630" src="https://img.hjyl.org/uploads/2023/09/20230916212453.png"  class="wp-image-4630" title="20230916212453.png" alt="20230916212453.png" /></a><figcaption class="wp-element-caption">数据库freshrss</figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://img.hjyl.org/uploads/2023/09/20230916212955.png"><img loading="lazy" decoding="async" width="493" height="303" data-id="4629" src="https://img.hjyl.org/uploads/2023/09/20230916212955.png"  class="wp-image-4629" title="20230916212955.png" alt="20230916212955.png" /></a><figcaption class="wp-element-caption">扩展名.ibd数据库</figcaption></figure>
</figure>



<p>有人说直接把MySQL文件夹下的文件直接覆盖不就行了？我试过，然后MySQL意外停止。</p>



<p>1、先别急，在phpmyadmin里新建一个数据库freshrss，将从新建立的freshrss站点备份出来的数据库导入进去。但是务必要确定与你要恢复的数据表名称一致！需要的可以<a href="https://alist.hjyl.org/d/%E7%BE%A4%E6%99%96%E7%B3%BB%E5%88%97/freshrss.sql.gz">下载我这个文件</a>，将数据表前缀改成你自己的就成。</p>



<figure class="wp-block-image size-full"><a href="https://img.hjyl.org/uploads/2023/09/20230916214400.png"><img loading="lazy" decoding="async" width="597" height="403" src="https://img.hjyl.org/uploads/2023/09/20230916214400.png"  class="wp-image-4631" style="object-fit:cover" title="20230916214400.png" alt="20230916214400.png" /></a><figcaption class="wp-element-caption">新建空白数据表</figcaption></figure>



<p>2、此时，你回头看看/docker/mysql/freshrss/下就会出现与上面新建数据表一样的数据了。然后关闭MySQL服务，我们尽量不要在数据库使用的情况下替换，接着我们将备份数据覆盖/docker/mysql/freshrss/下的数据，然后我们再启动MySQL服务。</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-3 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-full"><a href="https://img.hjyl.org/uploads/2023/09/20230916223154.png"><img loading="lazy" decoding="async" width="541" height="308" data-id="4634" src="https://img.hjyl.org/uploads/2023/09/20230916223154.png"  class="wp-image-4634" title="20230916223154.png" alt="20230916223154.png" /></a><figcaption class="wp-element-caption">覆盖前</figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://img.hjyl.org/uploads/2023/09/20230916215135.png"><img loading="lazy" decoding="async" width="584" height="326" data-id="4633" src="https://img.hjyl.org/uploads/2023/09/20230916215135.png"  class="wp-image-4633" title="20230916215135.png" alt="20230916215135.png" /></a><figcaption class="wp-element-caption">覆盖后</figcaption></figure>
</figure>



<p>3、通过SSH进入群晖里docker。</p>



<pre class="wp-block-code"><code>docker ps                                #列出当前运行的docker
docker exec -it <strong>Docker_ID</strong> /bin/bash      #<strong>Docker_ID</strong> 为上述列出的docker id
mysql -uroot -p                          #进入MySQL，输入密码，回车
use freshrss                             #选择freshrss数据库
#下面是导入各个数据表
ALTER TABLE rss_hjyl_org_category IMPORT TABLESPACE;
ALTER TABLE rss_hjyl_org_entry IMPORT TABLESPACE;
ALTER TABLE rss_hjyl_org_entrytag IMPORT TABLESPACE;
ALTER TABLE rss_hjyl_org_entrytmp IMPORT TABLESPACE;
ALTER TABLE rss_hjyl_org_feed IMPORT TABLESPACE;
ALTER TABLE rss_hjyl_org_tag IMPORT TABLESPACE;</code></pre>



<figure class="wp-block-image size-full"><a href="https://img.hjyl.org/uploads/2023/09/20230916224620.png"><img loading="lazy" decoding="async" width="616" height="437" src="https://img.hjyl.org/uploads/2023/09/20230916224620.png"  class="wp-image-4635" title="20230916224620.png" alt="20230916224620.png" /></a><figcaption class="wp-element-caption">导入数据表</figcaption></figure>



<p>好了，如此，数据库就替换完了。如果你还想导出来的话，可以到phpmyadmin导出，或者在ssh里使用命令完成：</p>



<pre class="wp-block-code"><code>mysqldump -uroot -p freshrss|gzip > /var/lib/mysql/freshrss.sql.gz   #回车输入密码</code></pre>



<p>这样在/docker/mysql下就能看到你导出来的数据库备份文件了。</p>



<p>参考资料：<br>https://www.bilibili.com/video/BV1Sh4y1y7X6/<br>https://juejin.cn/post/7041468609943568415</p>
<div id="content-copyright"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;font-size: 13px;">版权声明: </span><span style="font-size: 13px;">本文采用 <a href="https://hjyl.org/go/aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzMuMC8=" rel="nofollow" target="_blank">BY-NC-SA</a> 协议进行授权，如无注明均为原创，转载请注明转自 <a href="https://hjyl.org">皇家元林</a><br>本文链接: <a rel="bookmark" title="恢复MySQL.ibd数据库" href="https://hjyl.org/mysql-ibd-recovery/">恢复MySQL.ibd数据库</a></span></div>]]></content:encoded>
					
					<wfw:commentRss>https://hjyl.org/mysql-ibd-recovery/feed/</wfw:commentRss>
			<slash:comments>4</slash:comments>
		
		
			</item>
		<item>
		<title>群晖docker下MySQL+PhpMyAdmin的安装</title>
		<link>https://hjyl.org/dsm-docker-mysql-phpmyadmin/</link>
					<comments>https://hjyl.org/dsm-docker-mysql-phpmyadmin/#comments</comments>
		
		<dc:creator><![CDATA[皇家元林]]></dc:creator>
		<pubDate>Wed, 22 Mar 2023 10:01:25 +0000</pubDate>
				<category><![CDATA[元林手札]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[PhpMyAdmin]]></category>
		<category><![CDATA[群晖]]></category>
		<guid isPermaLink="false">https://hjyl.org/?p=4459</guid>

					<description><![CDATA[docker安装网站程序越来越方便了，而群晖下的docker应用更加的方便。网上大多都是利用命令安装的较多，我 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>docker安装网站程序越来越方便了，而群晖下的docker应用更加的方便。网上大多都是利用命令安装的较多，我折腾了一下，记录并分享在群晖docker下MySQL和PhpMyAdmin的安装方法。</p>



<p>首先，下载MySQL和PhpMyAdmin的官方镜像。如图：</p>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="992" height="570" src="https://img.hjyl.org/uploads/2023/03/20230322171858.png"  class="wp-image-4460" title="20230322171858.png" alt="20230322171858.png" /><figcaption class="wp-element-caption">MySQL+PhpMyAdmin</figcaption></figure>



<p>其次，安装MySQL数据库。</p>



<p>双击MySQL映像，默认开启最高权限和自动重启功能。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>存储：映射/docker/mysql为/var/lib/mysql。</p>
<cite>环境：添加MYSQL_ROOT_PASSWORD变量，值为你自己设置的数据库密码。<br><br>其他默认不变。</cite></blockquote>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1206" height="778" src="https://img.hjyl.org/uploads/2023/03/mysql.gif"  class="wp-image-4461" title="mysql.gif" alt="mysql.gif" /><figcaption class="wp-element-caption">MySQL安装配置</figcaption></figure>



<p>第三，安装PhpMyAdmin。</p>



<p>双击PhpMyAdmin映像，默认开启最高权限和自动重启功能。</p>



<blockquote class="wp-block-quote is-layout-flow wp-block-quote-is-layout-flow">
<p>端口：建议自定义，例如3080</p>
<cite>链接：选择刚才新建的mysql1，别名值自定义，例如mysql<br>环境：添加PMA_ARBITRARY，值为0；添加PMA_HOST，值为上面链接的别名，例如mysql<br>其他默认不变</cite></blockquote>



<figure class="wp-block-image size-full"><img loading="lazy" decoding="async" width="1152" height="687" src="https://img.hjyl.org/uploads/2023/03/PhpMyAdmin.gif"  class="wp-image-4462" title="PhpMyAdmin.gif" alt="PhpMyAdmin.gif" /><figcaption class="wp-element-caption">PhpMyAdmin安装和配置</figcaption></figure>



<p>OK，完成！打开IP:3080管理你的数据库吧！</p>
<div id="content-copyright"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;font-size: 13px;">版权声明: </span><span style="font-size: 13px;">本文采用 <a href="https://hjyl.org/go/aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzMuMC8=" rel="nofollow" target="_blank">BY-NC-SA</a> 协议进行授权，如无注明均为原创，转载请注明转自 <a href="https://hjyl.org">皇家元林</a><br>本文链接: <a rel="bookmark" title="群晖docker下MySQL+PhpMyAdmin的安装" href="https://hjyl.org/dsm-docker-mysql-phpmyadmin/">群晖docker下MySQL+PhpMyAdmin的安装</a></span></div>]]></content:encoded>
					
					<wfw:commentRss>https://hjyl.org/dsm-docker-mysql-phpmyadmin/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
		<item>
		<title>黑群晖 / docker / Tiny Tiny RSS</title>
		<link>https://hjyl.org/nas-docker-tiny-tiny-rss/</link>
					<comments>https://hjyl.org/nas-docker-tiny-tiny-rss/#comments</comments>
		
		<dc:creator><![CDATA[皇家元林]]></dc:creator>
		<pubDate>Wed, 11 Jan 2023 08:17:48 +0000</pubDate>
				<category><![CDATA[元林手札]]></category>
		<category><![CDATA[docker]]></category>
		<category><![CDATA[FreshRSS]]></category>
		<category><![CDATA[RSS订阅]]></category>
		<category><![CDATA[Tiny Tiny RSS]]></category>
		<category><![CDATA[黑群晖]]></category>
		<guid isPermaLink="false">https://hjyl.org/?p=4395</guid>

					<description><![CDATA[自从升级了黑群晖到7.1版本之后，freshrss订阅就没那么顺利了，经常出现感叹号，订阅失败的情况。于是乎就 [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p>自从升级了黑群晖到7.1版本之后，freshrss订阅就没那么顺利了，经常出现感叹号，订阅失败的情况。于是乎就想折腾一下Tiny Tiny RSS，之前折腾过，因为数据库的问题，而且官方自2011年开始不支持普通的环境安装，就放弃了。</p>



<p>网上用群晖docker安装TTRSS的教程不多，而且还恶心人要花钱买，不过好在重点都能看到，终于搞定了。此文记录一下，留给有缘人！</p>



<p>TTRSS支持PostgreSQL 或者 MySQL数据库，MySQL数据库繁琐的很，此文重点说下PostgreSQL，在群晖里安装很方便。</p>



<p>推荐docker镜像：<br>1、nornagon/postgres：PostgreSQL数据库服务<br>2、fischerman/docker-ttrss：TTRSS的镜像服务</p>


<div class="wp-block-image">
<figure class="aligncenter size-full"><img loading="lazy" decoding="async" width="991" height="569" src="https://img.hjyl.org/uploads/2023/01/20230111145857.png"  class="wp-image-4396" title="20230111145857.png" alt="20230111145857.png" /><figcaption class="wp-element-caption">docker镜像</figcaption></figure>
</div>


<p>一、安装PostgreSQL数据库服务</p>



<p>双击已经下载好的nornagon/postgres，直接创建，无需配置，只需要选中自动重启选项即可。</p>



<p>二、安装TTRSS</p>



<p>首先，在共享文件夹docker下新建一个文件夹，随便命名，比如TTRSS，再TTRSS下新建一个文件夹feed-icons，设置feed-icons属性里的权限，添加everyone用户，授予读取和写入的权限。当然你不新建feed-icons文件夹也行，直接赋予TTRSS文件夹上面的权限即可。</p>


<div class="wp-block-image">
<figure class="aligncenter size-full is-resized"><a href="https://hjyl.org/?attachment_id=4397"><img loading="lazy" decoding="async" src="https://img.hjyl.org/uploads/2023/01/20230111150457.png"  class="wp-image-4397" width="621" height="436" title="20230111150457.png" alt="20230111150457.png" /></a><figcaption class="wp-element-caption">TTRSS添加权限</figcaption></figure>
</div>


<p>其次，双击已经下载好的fischerman/docker-ttrss镜像，只需要设置两个关键点，①环境里的SELF_URL_PATH的值为TTRSS的网址，如果你是局域网网址就填局域网址，如果你直接绑定了域名，就填域名网址；②链接里添加刚才启动的数据库服务，值为db，注意一定是db，其他值都不行。</p>



<figure class="wp-block-gallery has-nested-images columns-default is-cropped wp-block-gallery-4 is-layout-flex wp-block-gallery-is-layout-flex">
<figure class="wp-block-image size-large"><a href="https://hjyl.org/?attachment_id=4398"><img loading="lazy" decoding="async" width="1045" height="592" data-id="4398" src="https://img.hjyl.org/uploads/2023/01/20230111150555.png" alt="环境变量配置" class="wp-image-4398" title="20230111150555.png" /></a><figcaption class="wp-element-caption">环境变量配置</figcaption></figure>



<figure class="wp-block-image size-large"><a href="https://hjyl.org/?attachment_id=4399"><img loading="lazy" decoding="async" width="1015" height="576" data-id="4399" src="https://img.hjyl.org/uploads/2023/01/20230111150700.png" alt="链接变量配置" class="wp-image-4399" title="20230111150700.png" /></a><figcaption class="wp-element-caption">链接变量配置</figcaption></figure>
</figure>



<p>端口那块，如果你不想自动分配，可以填一个固定的端口，譬如8080。</p>



<p>启动之后，你就可以打开SELF_URL_PATH后面的那个网址访问TTRSS服务了。默认用户名admin，密码password。</p>



<figure class="wp-block-table is-style-stripes has-small-font-size"><table class="has-fixed-layout"><tbody><tr><td></td><td class="has-text-align-left" data-align="left"><strong>FreshRSS</strong></td><td><strong>TTRSS</strong></td></tr><tr><td>优点</td><td class="has-text-align-left" data-align="left">1、界面UI简洁，好看，很容易习惯；<br>2、安装简单，无需繁琐的配置；<br>3、支持自主搭建LNMP环境安装服务；<br>4、支持sqlite数据库，简单不用配置；<br>5、出现订阅失败的网站可以强制订阅。</td><td>1、主题不多，但还算简洁，跟freshrss差不多；<br>2、订阅推送时间正常；<br>3、订阅失败能找到原因；<br>4、火狐浏览器导出备份正常；<br>5、听说有手机app支持，我没试过。</td></tr><tr><td>缺点</td><td class="has-text-align-left" data-align="left">1、像上面说的，突然出现无法订阅的情况，也不清楚什么原因；<br>2、订阅推送的时间貌似不太对，不知道是不是我配置的问题，一直没找到原因；<br>3、火狐浏览器导出备份出现错误，chrome内核的浏览器正常；</td><td>1、安装复杂，我是折腾了很久才搞定的；<br>2、订阅失败的网站不能强制订阅；<br>3、不支持自主搭建LNMP环境安装；</td></tr></tbody></table><figcaption class="wp-element-caption">FreshRSS与TTRSS优缺点比较</figcaption></figure>



<p>个人感觉，就这样了！主要是安装一个这样的服务，在所有平台都可以用。如有不同意见，欢迎指教！</p>
<div id="content-copyright"><span style="font-weight:bold;text-shadow:0 1px 0 #ddd;font-size: 13px;">版权声明: </span><span style="font-size: 13px;">本文采用 <a href="https://hjyl.org/go/aHR0cHM6Ly9jcmVhdGl2ZWNvbW1vbnMub3JnL2xpY2Vuc2VzL2J5LW5jLXNhLzMuMC8=" rel="nofollow" target="_blank">BY-NC-SA</a> 协议进行授权，如无注明均为原创，转载请注明转自 <a href="https://hjyl.org">皇家元林</a><br>本文链接: <a rel="bookmark" title="黑群晖 / docker / Tiny Tiny RSS" href="https://hjyl.org/nas-docker-tiny-tiny-rss/">黑群晖 / docker / Tiny Tiny RSS</a></span></div>]]></content:encoded>
					
					<wfw:commentRss>https://hjyl.org/nas-docker-tiny-tiny-rss/feed/</wfw:commentRss>
			<slash:comments>3</slash:comments>
		
		
			</item>
	</channel>
</rss>
