id: bcf23c796e4b4a0a84cd32b732f6c72f
parent_id: 
item_type: 1
item_id: f953b200f90741c0a3377043aa551ca1
item_updated_time: 1764345498410
title_diff: "[{\"diffs\":[[1,\"[分享]Synology Docker 應用實例整理 - Mobile01\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":37}]"
body_diff: "[{\"diffs\":[[1,\"<html>\\\r\\\n<head>\\\r\\\n  <title>[分享]Synology Docker 應用實例整理 - Mobile01</title>\\\r\\\n  <basefont face=\\\"微软雅黑\\\" size=\\\"2\\\" />\\\r\\\n  <meta http-equiv=\\\"Content-Type\\\" content=\\\"text/html;charset=utf-8\\\" />\\\r\\\n  <meta name=\\\"exporter-version\\\" content=\\\"YXBJ Windows/608924 (zh-CN, DDL); Windows/10.0.0 (Win64); EDAMVersion=V2;\\\"/>\\\r\\\n  <style>\\\r\\\n\\tbody, td {\\\r\\\n\\t  font-family: 微软雅黑;\\\r\\\n\\t  font-size: 12pt;\\\r\\\n\\t}\\\r\\\n  </style>\\\r\\\n</head>\\\r\\\n<body>\\\r\\\n<a name=\\\"27043\\\"></a>\\\r\\\n<h1>[分享]Synology Docker 應用實例整理 - Mobile01</h1>\\\r\\\n\\\r\\\n<div><span>\\\n  <div style=\\\"--en-clipped-content:simplified; --en-clipped-source-url:https://www.mobile01.com/topicdetail.php?f=494&amp;t=5110556&amp;p=1#63887870; --en-clipped-source-title:[分享]Synology Docker 應用實例整理 - Mobile01;\\\">\\\n<div><br/></div><div style=\\\"min-height: 7059px; font-size: 16px; display: block; min-width: 100%;\\\"> <div style=\\\"background-color:transparent;font:inherit;vertical-align:baseline;\\\"><div style=\\\"background-color:transparent;font:inherit;vertical-align:baseline;font-family:&quot;PT Serif&quot;;font-size:16px;line-height:1.5em;color:rgb(31, 9, 9);text-align:left;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;width:36em;z-index:200;padding-left:2em;padding-right:2em;margin-left:auto;margin-right:auto;position:relative;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;position:relative;margin-left:-25px;margin-right:25px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;padding-top:0px;padding-bottom:9em;position:relative;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;position:relative;margin-bottom:0px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\"><h1 style=\\\"font-family:&quot;PT Serif&quot;;text-align:left;border:0px;font:inherit;vertical-align:baseline;font-size:35px;font-weight:normal;line-height:35px;margin-bottom:20px;padding:0px;margin:0px;\\\">[分享]Synology Docker 應用實例整理</h1><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;position:relative;height:1em;line-height:1;text-align:center;margin:0px;padding-top:1.5em;padding-bottom:1.5em;margin-bottom:0px;\\\"><div style=\\\"padding:0px;border:0px;font:inherit;vertical-align:baseline;background:-webkit-linear-gradient(0deg, rgb(243, 242, 238) 1%, rgb(31, 9, 9) 50%, rgb(243, 242, 238) 99%);position:absolute;left:-4em;top:50%;z-index:10;width:100%;padding-left:4em;padding-right:4em;height:0.1em;opacity:0.5;margin:0px;margin-bottom:0px;\\\"><span style=\\\"font:inherit;position:absolute;left:-4em;top:50%;z-index:10;width:100%;padding-left:4em;padding-right:4em;height:0.1em;margin:0px;opacity:0.5;background:-webkit-linear-gradient(0deg, rgb(243, 242, 238) 1%, rgb(31, 9, 9) 50%, rgb(243, 242, 238) 99%);\\\"></span></div></div></div>\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">\\\n\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:1.5em;\\\">\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;\\\">\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">\\\n現今 NAS 提供除了檔案分享功能之外, 另外可安裝套件以擴充其功能. 原廠已經提供了相當多的套件可供直接安裝使用.\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/e01bc937b18841cfa68edf8c2031ee40\\\" type=\\\"image/jpeg\\\" data-filename=\\\"mobile01-8bdbfd62652427f737ab01fc8fbca9ab.jpg\\\" height=\\\"387\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div>\\\n\\\n但還是有相當多的軟體並不在原廠所提供的套件之中, 在過去通常就是 email 建議原廠考慮將某某軟體包裝成套件發行, 再加上默默的等待, 現 NAS 提供 Docker 功能, User 可以自行在上面安裝更多的軟體.\\\n\\\n這裡並不限於 Synology NAS, 小弟只是以自己慣用的 NAS 為例, 同樣的軟體在 QNap Container Station or Asustor Docker 都是能夠運作的, 依各人所慣用的工具即可.\\\n\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/7782cb0a3ac4467eb20e2f8891ce1454\\\" type=\\\"image/jpeg\\\" data-filename=\\\"mobile01-68b953b36de4d1d56c3ca9f119542375.jpg\\\" height=\\\"351\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div>\\\n\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/e046357b0fdd4b23a481a69ef7068176\\\" type=\\\"image/jpeg\\\" data-filename=\\\"mobile01-ca6d638163d624147dd0ff1a2e193a90.jpg\\\" height=\\\"330\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div>\\\n\\\n\\\nDocker 在 x86 based NAS 上面的資源會比較豐富, 所以在此處 demo 的是以 Synology x86 based NAS 為主 (如 DS415+, DS713+...), 建議日後 User 在選購 NAS 上, 若有 virtualization 的需求, 應該儘可能選擇 x86 based NAS, 而記憶體以 4GB 以上會更為適合, 小弟使用的系統如下:\\\n\\\nSynology DS415+: 8GB RAM\\\nSynology DS713+: 4GB RAM\\\n\\\n\\\n第一步當然是先將 NAS 上的 Docker 套件安裝起來:\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/fc4e7161172446fbb479246a96ce8b65\\\" type=\\\"image/jpeg\\\" data-filename=\\\"mobile01-e4f0d690d3fb1546aaae4bb6f5e51c36.jpg\\\" height=\\\"292\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div>\\\n\\\n\\\n<b style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-weight:bold;\\\">原廠說明文件</b>\\\n<a href=\\\"https://www.mobile01.com/externallink.php?url=https%3A%2F%2Fwww.synology.com%2Fzh-tw%2Fknowledgebase%2FDSM%2Fhelp%2FDocker%2Fdocker_container\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">Synology Docker 建立容器</a>\\\n<a href=\\\"https://www.mobile01.com/externallink.php?url=https%3A%2F%2Fwww.gitbook.com%2Fbook%2Fphilipzheng%2Fdocker_practice%2Fdetails\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">《Docker —— 從入門到實踐­》正體中文版</a>\\\n\\\n\\\n<b style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-weight:bold;\\\">實例整理</b>\\\n<a href=\\\"https://www.mobile01.com/topicdetail.php?f=494&amp;t=5110556&amp;p=1#63887870\\\" style=\\\"color:rgb(6, 85, 136);margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;text-decoration:none;\\\">youtube-dl 線上影音網站下載器</a>\\\n\\\n翻牆工具 shadowsocks\\\n</div>\\\n</div>\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">FB: Pctine</div>\\\n</div>\\\n\\\n\\\n\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">\\\n<span style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;\\\">2017-04-04 14:37</span>\\\n<span style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;\\\">#1</span>\\\n</div>\\\n\\\n</div>\\\n\\\n</div>\\\n</div>\\\n</div>\\\n\\\n\\\n\\\n\\\n\\\n\\\n\\\n\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;\\\">\\\n<b style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;font-weight:bold;\\\">youtube-dl 線上串流影片下載</b><br/><br/>現今 Internet 上面提供了相當多的線上影片資源, 例如 youtube, vimeo, 各大電視台等, 如果你有收集影片的喜好, 那麼這 youtube-dl 軟體就很實用.<br/><br/>Synology download station 本身支援 youtube 影片下載, 可以直接貼上 youtube 網址就自己將影片下載至 NAS, 但也僅止於 youtube, 並不支援其他的影音網站, 而在其他家 NAS 如 Qnap HappyGet, Asustor Takeasy 套件支援的格式就較多.<br/><br/>以下這套 youtube-dl 支援的影音網站有數十種之前, 做為第一個 docker demo, 所以步驟上會寫的比較詳細.<br/><br/>youtube-dl 官網, 支援的網站 list 請參考官網.<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/5558e2bf8c1644de857525ea2b34b14c\\\" type=\\\"image/jpeg\\\" data-filename=\\\"mobile01-c156bcf58bbfc4dc6e45c84bc0c3d886.jpg\\\" height=\\\"346\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div>synology docker 直接 search keyword &quot;youtube-dl&quot;, 我們裝的是這套.<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/72fc463cd1634936b2953bc471c870ac\\\" type=\\\"image/jpeg\\\" data-filename=\\\"mobile01-6737fba221d6a9ca43ae6590790fb664.jpg\\\" height=\\\"289\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div>按箭頭處連至該 docker 的詳細說明, 主要是看它的安裝方式.<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/2584ea2df62b4a439dcd8140842bb096\\\" type=\\\"image/jpeg\\\" data-filename=\\\"mobile01-d328e4aaef363d91833031e1945d9adc.jpg\\\" height=\\\"346\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div>這個 image 已經包含了 web ui, 在使用上比較方便.<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/19fc227007f94bd99ae693437fe825b3\\\" type=\\\"image/jpeg\\\" data-filename=\\\"mobile01-4656ec506ffdbf4fbd7e335cee2f7e9e.jpg\\\" height=\\\"346\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div>從 &quot;Dockerfile&quot; 注意點在 EXPOSE &amp; VOLUME 這些參數. 下面會說明.<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/939300b2d261416bb8ec4bbf686e1334\\\" type=\\\"image/jpeg\\\" data-filename=\\\"mobile01-314520fd2f3cea93d9d4a7ca264ae3a4.jpg\\\" height=\\\"346\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div>前面提到 &quot;VOLUME&quot; 這個參數, 你必須在 NAS 用一個實際的路徑去 mapping 它 (請參考 Synology 原廠說明文件)<br/>在這裡, 它指的就是影片下載回來後存放的路徑.<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/5eedec993f1341bcb8d9ba7f0dd13d5e\\\" type=\\\"image/jpeg\\\" data-filename=\\\"mobile01-213eb042d7e8e2fa7b59269be36a3097.jpg\\\" height=\\\"230\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div>開始設定.<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/1ea5f8c1a6734be88d76dc8a528338dc\\\" type=\\\"image/jpeg\\\" data-filename=\\\"mobile01-5894175d9975cea02a62568703b74da4.jpg\\\" height=\\\"289\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div>點選進階設定.<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/939716395b72450b9f4460b352d1ba36\\\" type=\\\"image/jpeg\\\" data-filename=\\\"mobile01-9e41913bacd30958aecd36a96d7f14fa.jpg\\\" height=\\\"412\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div>這裡就是設定 &quot;VOLUME&quot; mapping 的方式. 將 /youtube-dl 對應至 NAS 實體的 /docker/youtube-dl 路徑.<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;text-align:center;margin-bottom:1em;margin-top:1em;\\\"><img src=\\\":/880034b2c6f94b028a915b2ea6c8d98c\\\" type=\\\"image/jpeg\\\" data-filename=\\\"mobile01-c5ff0a46998dbc269809863ac6fa218b.jpg\\\" height=\\\"484\\\" style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;display:block;max-width:100%;\\\" width=\\\"576\\\"/></div>這裡就是剛才看到 &quot;EXPOSE&quot; 所要對應出來的 port, docker 實際上 web ui 是 8080 port, 但一般這些port number 已經被 NAS 所使用, 所以我們將其 mapping 至 38080 (這可自行指定), Synology Docker 套件很貼心的會列出該軟體會使用到的所有 port number.<br/><br/><br/>前面有提到, 此套件提供了一個 web ui, 為了方便使用, 我們在 DSM桌面上建了一個捷徑．<br/><br/><br/>最後檢視所有的設定值．<br/><br/><br/>佈署完成．<br/><br/><br/>桌面上也多了一個捷徑, 直接點選.<br/><br/><br/>現在開始下載影片吧, 你可以至各個支援的影音網站, 找到網址, 如此例是 youtube 影片, copy 該網址.<br/><br/><br/>把網址貼至 youtube-dl web ui. 就會自動下載.<br/><br/><br/>在 docker status 可以看到下載的進度.<br/><br/><br/>回到剛才我們 mapping 的路徑 (/docker/youtube-dl), 可以看到影片已經下載完成.<br/><br/>透過 youtube-dl 下載 youtube 影片較 download station 佳的原因是, youtube-dl 會抓高清的影片回來, 但 download station 不會.<br/><br/>其他例如各大電視台, 壹電視等網站, 都可以將網址直接貼上下載.<br/>\\\n</div>\\\n<div style=\\\"margin:0px;padding:0px;border:0px;font:inherit;vertical-align:baseline;margin-bottom:0px;\\\">FB: Pctine</div>\\\n</div></div></div></div></div></div></div></div></div></div>\\\n</div>\\\n</span>\\\n</div></body></html>\\u0000\"]],\"start1\":0,\"start2\":0,\"length1\":0,\"length2\":13335}]"
metadata_diff: {"new":{"id":"f953b200f90741c0a3377043aa551ca1","parent_id":"061de1401cfc4cfaadf6e74e015970e9","latitude":"0.00000000","longitude":"0.00000000","altitude":"0.0000","author":"","source_url":"","is_todo":0,"todo_due":0,"todo_completed":0,"source":"joplin-desktop","source_application":"net.cozic.joplin-desktop","application_data":"","order":1764345776612,"markup_language":2,"is_shared":0,"share_id":"","conflict_original_id":"","master_key_id":"","user_data":"","deleted_time":0},"deleted":[]}
encryption_cipher_text: 
encryption_applied: 0
updated_time: 2025-11-28T16:20:15.740Z
created_time: 2025-11-28T16:20:15.740Z
type_: 13