<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-35479981</id><updated>2026-07-28T14:13:19.915+08:00</updated><category term="android"/><category term="Bug List"/><category term="Docker"/><category term="PHP"/><category term="YII"/><category term="java"/><category term="linux"/><category term="mac"/><category term="Play Framework 2"/><category term="Python"/><category term="XCODE"/><category term="mysql"/><category term="ubuntu"/><category term="人工智慧"/><category term="JavaScript"/><category term="NetBeans"/><category term="Raspberry Pi 3 B+"/><category term="Tensorflow"/><category term="jdk7"/><category term="教學"/><category term="教會"/><category term="程式"/><category term="電影"/><category term="ADB"/><category term="AI"/><category term="BSON"/><category term="FireBug"/><category term="FrameWork"/><category term="GIT"/><category term="GSON"/><category term="IOS"/><category term="JDK6"/><category term="JSON"/><category term="LEAP MOTION"/><category term="MIT"/><category term="NetBeans 12"/><category term="OpenCV"/><category term="PostgreSQL"/><category term="ProGuard"/><category term="Race condition"/><category term="SSD"/><category term="Sensor"/><category term="Sphinx"/><category term="TCP/IP"/><category term="UDID"/><category term="WINDOWS"/><category term="WiFi"/><category term="Window"/><category term="YII_BOOK"/><category term="ant"/><category term="aws"/><category term="brew"/><category term="cmdline"/><category term="command line"/><category term="console"/><category term="db"/><category term="debian"/><category term="ec2"/><category term="emo"/><category term="firmware"/><category term="innodb"/><category term="jdk"/><category term="map"/><category term="restore"/><category term="scala"/><category term="select for update"/><category term="sign"/><category term="squirrel-lang"/><category term="ssh"/><category term="svn"/><category term="wretch"/><category term="xml"/><category term="下載"/><category term="個人記錄"/><category term="備份"/><category term="劉德華"/><category term="安裝"/><category term="影評"/><category term="悲觀鎖定"/><category term="攝影"/><category term="故事"/><category term="桌遊"/><category term="樂觀鎖定"/><category term="機器學習"/><category term="混搖器"/><category term="無法連線"/><category term="簽署"/><category term="經文"/><category term="螢目休眠"/><category term="見證"/><category term="開發"/><category term="開箱"/><category term="頻寬"/><title type='text'>微塵小站</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>78</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-35479981.post-3322273037296744074</id><published>2025-03-09T12:16:00.005+08:00</published><updated>2025-03-09T12:16:49.928+08:00</updated><title type='text'>GCP 增加磁碟</title><content type='html'>&lt;p&gt;&lt;span style=&quot;background-color: #f9f9f9; color: #242424; font-family: source-code-pro, Menlo, Monaco, &amp;quot;Courier New&amp;quot;, Courier, monospace; font-size: 14px; letter-spacing: -0.308px; white-space: pre;&quot;&gt;sudo blkid&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;vi /etc/fs&lt;/p&gt;&lt;p&gt;vi /etc/fstab&lt;/p&gt;&lt;p&gt;UUID=cxxxxxxxxxxxxxxxxxxxxxxx /100G ext4 defaults 0 0&lt;/p&gt;&lt;p&gt;UUID=&quot;xxxxxxxxxxxxxxxxxxxxxx&quot; /100G ext4 defaults 0 0&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;Arial, &amp;quot;Microsoft JhengHei&amp;quot;, sans-serif&quot; style=&quot;background-color: rgba(254, 252, 249, 0.65); color: #444444; font-size: 15px;&quot;&gt;sda 的第一個分割區擴大&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;Arial, &amp;quot;Microsoft JhengHei&amp;quot;, sans-serif&quot; style=&quot;background-color: rgba(254, 252, 249, 0.65); color: #444444; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 15px; text-wrap-mode: nowrap;&quot;&gt;growpart /dev/sda 1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 15px; text-wrap-mode: nowrap;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: white; font-family: consolas, &amp;quot;bitstream vera sans mono&amp;quot;, &amp;quot;courier new&amp;quot;, Courier, monospace; font-size: 15px; text-wrap-mode: nowrap;&quot;&gt;resize2fs /dev/sda1&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;&amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: white; color: #555555; font-size: 15px;&quot;&gt;清除 Docker 的磁碟空間&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span face=&quot;&amp;quot;Open Sans&amp;quot;, &amp;quot;Helvetica Neue&amp;quot;, Helvetica, Arial, sans-serif&quot; style=&quot;background-color: white; color: #555555; font-size: 15px;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;line&quot; style=&quot;border: 0px; color: #cccccc; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, Monaco, Menlo, Consolas, monospace; font-size: 15px; height: 24px; margin: 0px; outline: 0px; padding: 0px; vertical-align: baseline; white-space: pre;&quot;&gt;docker system prune -f&lt;/span&gt;&lt;br style=&quot;color: #cccccc; font-family: &amp;quot;Source Code Pro&amp;quot;, Consolas, Monaco, Menlo, Consolas, monospace; font-size: 15px; white-space: pre;&quot; /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/3322273037296744074/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/3322273037296744074' title='1 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/3322273037296744074'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/3322273037296744074'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2025/03/gcp.html' title='GCP 增加磁碟'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-4434018027930227201</id><published>2025-03-09T11:47:00.002+08:00</published><updated>2025-03-09T11:47:17.847+08:00</updated><title type='text'>docker root 安裝問題</title><content type='html'>&lt;p&gt;&lt;span style=&quot;color: #0c0d0e; font-family: inherit; font-size: var(--_pr-code-fs); font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #0c0d0e; font-family: inherit; font-size: var(--_pr-code-fs); font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;color: #0c0d0e; font-family: inherit; font-size: var(--_pr-code-fs); font-style: inherit; font-variant-caps: inherit; font-variant-ligatures: inherit; font-weight: inherit; white-space: inherit;&quot;&gt;sudo usermod -aG docker &lt;/span&gt;&lt;span class=&quot;hljs-variable&quot; style=&quot;--theme-background-attachment: auto; --theme-background-color: var(--white); --theme-background-position: top left; --theme-background-repeat: repeat; --theme-background-size: auto; --theme-base-primary-color-h: 27; --theme-base-primary-color-l: 48%; --theme-base-primary-color-s: 89%; --theme-body-font-color: var(--black-600); --theme-body-font-family: var(--ff-sans); --theme-button-active-background-color: initial; --theme-button-color: initial; --theme-button-hover-background-color: initial; --theme-button-hover-color: initial; --theme-button-outlined-border-color: initial; --theme-button-outlined-selected-border-color: initial; --theme-button-primary-active-background-color: initial; --theme-button-primary-active-color: initial; --theme-button-primary-background-color: initial; --theme-button-primary-color: initial; --theme-button-primary-hover-background-color: initial; --theme-button-primary-hover-color: initial; --theme-button-primary-selected-background-color: initial; --theme-button-primary-selected-color: initial; --theme-button-selected-background-color: initial; --theme-button-selected-color: initial; --theme-content-background-color: var(--white); --theme-content-border-color: var(--black-225); --theme-footer-background-border-top: 0; --theme-footer-background-color: hsl(210,8%,5%); --theme-footer-background-position: top left; --theme-footer-background-repeat: no-repeat; --theme-footer-background-size: auto; --theme-footer-divider-color: var(--black-500); --theme-footer-link-color-hover: var(--black-200); --theme-footer-link-color: var(--black-300); --theme-footer-padding-bottom: 0; --theme-footer-padding-top: 0; --theme-footer-text-color: var(--black-300); --theme-footer-title-color: var(--black-250); --theme-header-background-border-bottom: 0; --theme-header-background-color: var(--theme-primary); --theme-header-background-position: center left; --theme-header-background-repeat: repeat; --theme-header-background-size: auto; --theme-header-foreground-color: transparent; --theme-header-foreground-position: bottom right; --theme-header-foreground-repeat: no-repeat; --theme-header-foreground-size: auto; --theme-header-link-color: var(--theme-primary); --theme-header-sponsored-color: hsla(0,0%,100%,0.4); --theme-link-color-hover: initial; --theme-link-color-visited: initial; --theme-link-color: initial; --theme-post-body-font-family: var(--ff-sans); --theme-post-owner-background-color: var(--theme-secondary-100); --theme-post-owner-new-background-color: var(--theme-secondary-200); --theme-post-title-color-hover: var(--theme-link-color-hover); --theme-post-title-color-visited: var(--theme-link-color-visited); --theme-post-title-color: var(--theme-link-color); --theme-post-title-font-family: var(--ff-sans); --theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9))); --theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75))); --theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5))); --theme-primary-custom-400: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l)); --theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3))); --theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6))); --theme-primary-custom: var(--theme-primary-custom-400); --theme-topbar-bottom-border: 1px solid var(--black-225); border: 0px; box-sizing: inherit; color: var(--highlight-variable); font-family: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-variation-settings: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;$USER&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;hljs-variable&quot; style=&quot;--theme-background-attachment: auto; --theme-background-color: var(--white); --theme-background-position: top left; --theme-background-repeat: repeat; --theme-background-size: auto; --theme-base-primary-color-h: 27; --theme-base-primary-color-l: 48%; --theme-base-primary-color-s: 89%; --theme-body-font-color: var(--black-600); --theme-body-font-family: var(--ff-sans); --theme-button-active-background-color: initial; --theme-button-color: initial; --theme-button-hover-background-color: initial; --theme-button-hover-color: initial; --theme-button-outlined-border-color: initial; --theme-button-outlined-selected-border-color: initial; --theme-button-primary-active-background-color: initial; --theme-button-primary-active-color: initial; --theme-button-primary-background-color: initial; --theme-button-primary-color: initial; --theme-button-primary-hover-background-color: initial; --theme-button-primary-hover-color: initial; --theme-button-primary-selected-background-color: initial; --theme-button-primary-selected-color: initial; --theme-button-selected-background-color: initial; --theme-button-selected-color: initial; --theme-content-background-color: var(--white); --theme-content-border-color: var(--black-225); --theme-footer-background-border-top: 0; --theme-footer-background-color: hsl(210,8%,5%); --theme-footer-background-position: top left; --theme-footer-background-repeat: no-repeat; --theme-footer-background-size: auto; --theme-footer-divider-color: var(--black-500); --theme-footer-link-color-hover: var(--black-200); --theme-footer-link-color: var(--black-300); --theme-footer-padding-bottom: 0; --theme-footer-padding-top: 0; --theme-footer-text-color: var(--black-300); --theme-footer-title-color: var(--black-250); --theme-header-background-border-bottom: 0; --theme-header-background-color: var(--theme-primary); --theme-header-background-position: center left; --theme-header-background-repeat: repeat; --theme-header-background-size: auto; --theme-header-foreground-color: transparent; --theme-header-foreground-position: bottom right; --theme-header-foreground-repeat: no-repeat; --theme-header-foreground-size: auto; --theme-header-link-color: var(--theme-primary); --theme-header-sponsored-color: hsla(0,0%,100%,0.4); --theme-link-color-hover: initial; --theme-link-color-visited: initial; --theme-link-color: initial; --theme-post-body-font-family: var(--ff-sans); --theme-post-owner-background-color: var(--theme-secondary-100); --theme-post-owner-new-background-color: var(--theme-secondary-200); --theme-post-title-color-hover: var(--theme-link-color-hover); --theme-post-title-color-visited: var(--theme-link-color-visited); --theme-post-title-color: var(--theme-link-color); --theme-post-title-font-family: var(--ff-sans); --theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9))); --theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75))); --theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5))); --theme-primary-custom-400: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l)); --theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3))); --theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6))); --theme-primary-custom: var(--theme-primary-custom-400); --theme-topbar-bottom-border: 1px solid var(--black-225); border: 0px; box-sizing: inherit; color: var(--highlight-variable); font-family: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-variation-settings: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span class=&quot;hljs-variable&quot; style=&quot;--theme-background-attachment: auto; --theme-background-color: var(--white); --theme-background-position: top left; --theme-background-repeat: repeat; --theme-background-size: auto; --theme-base-primary-color-h: 27; --theme-base-primary-color-l: 48%; --theme-base-primary-color-s: 89%; --theme-body-font-color: var(--black-600); --theme-body-font-family: var(--ff-sans); --theme-button-active-background-color: initial; --theme-button-color: initial; --theme-button-hover-background-color: initial; --theme-button-hover-color: initial; --theme-button-outlined-border-color: initial; --theme-button-outlined-selected-border-color: initial; --theme-button-primary-active-background-color: initial; --theme-button-primary-active-color: initial; --theme-button-primary-background-color: initial; --theme-button-primary-color: initial; --theme-button-primary-hover-background-color: initial; --theme-button-primary-hover-color: initial; --theme-button-primary-selected-background-color: initial; --theme-button-primary-selected-color: initial; --theme-button-selected-background-color: initial; --theme-button-selected-color: initial; --theme-content-background-color: var(--white); --theme-content-border-color: var(--black-225); --theme-footer-background-border-top: 0; --theme-footer-background-color: hsl(210,8%,5%); --theme-footer-background-position: top left; --theme-footer-background-repeat: no-repeat; --theme-footer-background-size: auto; --theme-footer-divider-color: var(--black-500); --theme-footer-link-color-hover: var(--black-200); --theme-footer-link-color: var(--black-300); --theme-footer-padding-bottom: 0; --theme-footer-padding-top: 0; --theme-footer-text-color: var(--black-300); --theme-footer-title-color: var(--black-250); --theme-header-background-border-bottom: 0; --theme-header-background-color: var(--theme-primary); --theme-header-background-position: center left; --theme-header-background-repeat: repeat; --theme-header-background-size: auto; --theme-header-foreground-color: transparent; --theme-header-foreground-position: bottom right; --theme-header-foreground-repeat: no-repeat; --theme-header-foreground-size: auto; --theme-header-link-color: var(--theme-primary); --theme-header-sponsored-color: hsla(0,0%,100%,0.4); --theme-link-color-hover: initial; --theme-link-color-visited: initial; --theme-link-color: initial; --theme-post-body-font-family: var(--ff-sans); --theme-post-owner-background-color: var(--theme-secondary-100); --theme-post-owner-new-background-color: var(--theme-secondary-200); --theme-post-title-color-hover: var(--theme-link-color-hover); --theme-post-title-color-visited: var(--theme-link-color-visited); --theme-post-title-color: var(--theme-link-color); --theme-post-title-font-family: var(--ff-sans); --theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9))); --theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75))); --theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5))); --theme-primary-custom-400: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l)); --theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3))); --theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6))); --theme-primary-custom: var(--theme-primary-custom-400); --theme-topbar-bottom-border: 1px solid var(--black-225); border: 0px; box-sizing: inherit; color: var(--highlight-variable); font-family: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-variation-settings: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;pre class=&quot;lang-bash s-code-block&quot; style=&quot;--_cb-line-numbers-bg: var(--black-150); --theme-background-attachment: auto; --theme-background-color: var(--white); --theme-background-position: top left; --theme-background-repeat: repeat; --theme-background-size: auto; --theme-base-primary-color-h: 27; --theme-base-primary-color-l: 48%; --theme-base-primary-color-s: 89%; --theme-body-font-color: var(--black-600); --theme-body-font-family: var(--ff-sans); --theme-button-active-background-color: initial; --theme-button-color: initial; --theme-button-hover-background-color: initial; --theme-button-hover-color: initial; --theme-button-outlined-border-color: initial; --theme-button-outlined-selected-border-color: initial; --theme-button-primary-active-background-color: initial; --theme-button-primary-active-color: initial; --theme-button-primary-background-color: initial; --theme-button-primary-color: initial; --theme-button-primary-hover-background-color: initial; --theme-button-primary-hover-color: initial; --theme-button-primary-selected-background-color: initial; --theme-button-primary-selected-color: initial; --theme-button-selected-background-color: initial; --theme-button-selected-color: initial; --theme-content-background-color: var(--white); --theme-content-border-color: var(--black-225); --theme-footer-background-border-top: 0; --theme-footer-background-color: hsl(210,8%,5%); --theme-footer-background-position: top left; --theme-footer-background-repeat: no-repeat; --theme-footer-background-size: auto; --theme-footer-divider-color: var(--black-500); --theme-footer-link-color-hover: var(--black-200); --theme-footer-link-color: var(--black-300); --theme-footer-padding-bottom: 0; --theme-footer-padding-top: 0; --theme-footer-text-color: var(--black-300); --theme-footer-title-color: var(--black-250); --theme-header-background-border-bottom: 0; --theme-header-background-color: var(--theme-primary); --theme-header-background-position: center left; --theme-header-background-repeat: repeat; --theme-header-background-size: auto; --theme-header-foreground-color: transparent; --theme-header-foreground-position: bottom right; --theme-header-foreground-repeat: no-repeat; --theme-header-foreground-size: auto; --theme-header-link-color: var(--theme-primary); --theme-header-sponsored-color: hsla(0,0%,100%,0.4); --theme-link-color-hover: initial; --theme-link-color-visited: initial; --theme-link-color: initial; --theme-post-body-font-family: var(--ff-sans); --theme-post-owner-background-color: var(--theme-secondary-100); --theme-post-owner-new-background-color: var(--theme-secondary-200); --theme-post-title-color-hover: var(--theme-link-color-hover); --theme-post-title-color-visited: var(--theme-link-color-visited); --theme-post-title-color: var(--theme-link-color); --theme-post-title-font-family: var(--ff-sans); --theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9))); --theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75))); --theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5))); --theme-primary-custom-400: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l)); --theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3))); --theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6))); --theme-primary-custom: var(--theme-primary-custom-400); --theme-topbar-bottom-border: 1px solid var(--black-225); border-radius: var(--br-md); border: 0px; box-sizing: inherit; color: #0c0d0e; font-family: var(--ff-mono); font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-size: var(--fs-body1); font-stretch: inherit; font-variant-alternates: inherit; font-variant-east-asian: inherit; font-variant-emoji: inherit; font-variant-numeric: inherit; font-variant-position: inherit; font-variation-settings: inherit; line-height: var(--lh-md); margin-bottom: calc(1.5em); margin-top: 0px; max-height: 600px; overflow-wrap: normal; overflow: auto; padding: var(--su12); scrollbar-color: var(--scrollbar) transparent; vertical-align: baseline; width: auto;&quot;&gt;&lt;code class=&quot;hljs language-bash&quot; data-highlighted=&quot;yes&quot; style=&quot;--theme-background-attachment: auto; --theme-background-color: var(--white); --theme-background-position: top left; --theme-background-repeat: repeat; --theme-background-size: auto; --theme-base-primary-color-h: 27; --theme-base-primary-color-l: 48%; --theme-base-primary-color-s: 89%; --theme-body-font-color: var(--black-600); --theme-body-font-family: var(--ff-sans); --theme-button-active-background-color: initial; --theme-button-color: initial; --theme-button-hover-background-color: initial; --theme-button-hover-color: initial; --theme-button-outlined-border-color: initial; --theme-button-outlined-selected-border-color: initial; --theme-button-primary-active-background-color: initial; --theme-button-primary-active-color: initial; --theme-button-primary-background-color: initial; --theme-button-primary-color: initial; --theme-button-primary-hover-background-color: initial; --theme-button-primary-hover-color: initial; --theme-button-primary-selected-background-color: initial; --theme-button-primary-selected-color: initial; --theme-button-selected-background-color: initial; --theme-button-selected-color: initial; --theme-content-background-color: var(--white); --theme-content-border-color: var(--black-225); --theme-footer-background-border-top: 0; --theme-footer-background-color: hsl(210,8%,5%); --theme-footer-background-position: top left; --theme-footer-background-repeat: no-repeat; --theme-footer-background-size: auto; --theme-footer-divider-color: var(--black-500); --theme-footer-link-color-hover: var(--black-200); --theme-footer-link-color: var(--black-300); --theme-footer-padding-bottom: 0; --theme-footer-padding-top: 0; --theme-footer-text-color: var(--black-300); --theme-footer-title-color: var(--black-250); --theme-header-background-border-bottom: 0; --theme-header-background-color: var(--theme-primary); --theme-header-background-position: center left; --theme-header-background-repeat: repeat; --theme-header-background-size: auto; --theme-header-foreground-color: transparent; --theme-header-foreground-position: bottom right; --theme-header-foreground-repeat: no-repeat; --theme-header-foreground-size: auto; --theme-header-link-color: var(--theme-primary); --theme-header-sponsored-color: hsla(0,0%,100%,0.4); --theme-link-color-hover: initial; --theme-link-color-visited: initial; --theme-link-color: initial; --theme-post-body-font-family: var(--ff-sans); --theme-post-owner-background-color: var(--theme-secondary-100); --theme-post-owner-new-background-color: var(--theme-secondary-200); --theme-post-title-color-hover: var(--theme-link-color-hover); --theme-post-title-color-visited: var(--theme-link-color-visited); --theme-post-title-color: var(--theme-link-color); --theme-post-title-font-family: var(--ff-sans); --theme-primary-custom-100: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .9))); --theme-primary-custom-200: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .75))); --theme-primary-custom-300: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + ((100% - var(--theme-base-primary-color-l)) * .5))); --theme-primary-custom-400: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), var(--theme-base-primary-color-l)); --theme-primary-custom-500: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.3))); --theme-primary-custom-600: hsl(var(--theme-base-primary-color-h), var(--theme-base-primary-color-s), calc(var(--theme-base-primary-color-l) + (var(--theme-base-primary-color-l) * -.6))); --theme-primary-custom: var(--theme-primary-custom-400); --theme-topbar-bottom-border: 1px solid var(--black-225); border: 0px; box-sizing: inherit; font-family: inherit; font-feature-settings: inherit; font-kerning: inherit; font-optical-sizing: inherit; font-size-adjust: inherit; font-size: var(--_pr-code-fs); font-stretch: inherit; font-style: inherit; font-variant: inherit; font-variation-settings: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;newgrp docker&lt;/code&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/4434018027930227201/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/4434018027930227201' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/4434018027930227201'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/4434018027930227201'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2025/03/docker-root.html' title='docker root 安裝問題'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-5886932552130489600</id><published>2025-03-05T10:00:00.002+08:00</published><updated>2026-04-27T17:10:36.536+08:00</updated><title type='text'>docker save load 匯出</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;span style=&quot;font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;&quot;&gt;docker save -o xxx.tar xxxx/xxx:xx&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;span style=&quot;font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;&quot;&gt;docker load -i xxx.tar&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/5886932552130489600/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/5886932552130489600' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/5886932552130489600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/5886932552130489600'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2025/03/docker-save-load.html' title='docker save load 匯出'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-956511775082126752</id><published>2025-03-04T16:10:00.002+08:00</published><updated>2025-03-04T16:10:46.213+08:00</updated><title type='text'>gitlab 清除預設密碼</title><content type='html'>&lt;p&gt;&amp;nbsp;git config --system --unset credential.helper&lt;/p&gt;&lt;p&gt;git config --global credential.helper wincred&lt;/p&gt;&lt;div&gt;&lt;div&gt;git credential-manager uninstall&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/956511775082126752/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/956511775082126752' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/956511775082126752'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/956511775082126752'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2025/03/gitlab.html' title='gitlab 清除預設密碼'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-6556585711097101817</id><published>2024-04-13T11:19:00.005+08:00</published><updated>2024-04-13T11:41:25.092+08:00</updated><title type='text'>最新docker ubuntu linux 安裝法</title><content type='html'>&lt;p&gt;&amp;nbsp;# Add Docker&#39;s official GPG key:&lt;/p&gt;&lt;p&gt;sudo apt-get update&lt;/p&gt;&lt;p&gt;sudo apt-get install ca-certificates curl&lt;/p&gt;&lt;p&gt;sudo install -m 0755 -d /etc/apt/keyrings&lt;/p&gt;&lt;p&gt;sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc&lt;/p&gt;&lt;p&gt;sudo chmod a+r /etc/apt/keyrings/docker.asc&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;# Add the repository to Apt sources:&lt;/p&gt;&lt;p&gt;echo \&lt;/p&gt;&lt;p&gt;&amp;nbsp; &quot;deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \&lt;/p&gt;&lt;p&gt;&amp;nbsp; $(. /etc/os-release &amp;amp;&amp;amp; echo &quot;$VERSION_CODENAME&quot;) stable&quot; | \&lt;/p&gt;&lt;p&gt;&amp;nbsp; sudo tee /etc/apt/sources.list.d/docker.list &amp;gt; /dev/null&lt;/p&gt;&lt;p&gt;sudo apt-get update&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;sudo apt install docker-compose&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: #ececec; color: #292929; font-family: Lato, sans-serif; font-size: 20px;&quot;&gt;sudo usermod -aG docker ${USER}&lt;/span&gt;&lt;br style=&quot;background-color: #ececec; color: #292929; font-family: Lato, sans-serif; font-size: 20px;&quot; /&gt;&lt;br style=&quot;background-color: #ececec; color: #292929; font-family: Lato, sans-serif; font-size: 20px;&quot; /&gt;&lt;span style=&quot;background-color: #ececec; color: #292929; font-family: Lato, sans-serif; font-size: 20px;&quot;&gt;exit&lt;/span&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/6556585711097101817/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/6556585711097101817' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/6556585711097101817'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/6556585711097101817'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2024/04/docker-ubuntu-linux.html' title='最新docker ubuntu linux 安裝法'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-938008405729104821</id><published>2021-12-02T19:27:00.003+08:00</published><updated>2021-12-02T19:27:56.564+08:00</updated><title type='text'>在linux command line 下載gdrive檔案</title><content type='html'>&lt;p&gt;&amp;nbsp;https://github.com/GitHub30/gdrive.sh&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/938008405729104821/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/938008405729104821' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/938008405729104821'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/938008405729104821'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2021/12/linux-command-line-gdrive.html' title='在linux command line 下載gdrive檔案'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-5156360691638064485</id><published>2021-11-30T15:35:00.004+08:00</published><updated>2021-11-30T15:35:35.587+08:00</updated><title type='text'>常用指令</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre&gt;&lt;code class=&quot;language-console&quot;&gt;docker run -it --rm --name python3&lt;/code&gt;&lt;code class=&quot;language-console&quot;&gt;&lt;code class=&quot;language-console&quot;&gt;&lt;code class=&quot;language-console&quot;&gt;&lt;code class=&quot;language-console&quot;&gt;_you_like&lt;/code&gt;&lt;/code&gt;&lt;/code&gt; -v &quot;$PWD/app&quot;:/usr/src/myapp -w /usr/src/myapp python:3&lt;/code&gt;&lt;code class=&quot;language-console&quot;&gt;&lt;code class=&quot;language-console&quot;&gt; /bin/bash&lt;/code&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code class=&quot;language-console&quot;&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code class=&quot;language-console&quot;&gt;&lt;code class=&quot;language-console&quot;&gt;docker run -it --rm --name &lt;/code&gt;&lt;/code&gt;&lt;code class=&quot;language-console&quot;&gt;&lt;code class=&quot;language-console&quot;&gt;&lt;code class=&quot;language-console&quot;&gt;python2_you_like&lt;/code&gt; -v &quot;$PWD/app&quot;:/usr/src/myapp -w /usr/src/myapp python:2 /bin/bash&lt;/code&gt;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;請空image 省空間&lt;br /&gt;&lt;/p&gt;&lt;p&gt;docker system prune -f&lt;br /&gt;docker container prune -f&lt;br /&gt;docker rmi $(docker images -a -q) &lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/5156360691638064485/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/5156360691638064485' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/5156360691638064485'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/5156360691638064485'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2021/11/blog-post.html' title='常用指令'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-3840542662718200012</id><published>2021-11-30T15:25:00.004+08:00</published><updated>2021-11-30T15:25:19.249+08:00</updated><title type='text'>Mac 下載 Google Drive </title><content type='html'>&lt;p&gt;brew install gdrive&lt;/p&gt;&lt;pre&gt;&lt;code&gt;gdrive download --recursive xxxxxxxxxUIgFWXA1B2FPQfV5S8H&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&amp;nbsp;&lt;/code&gt;&lt;/pre&gt;&lt;pre&gt;&lt;code&gt;&amp;nbsp;Try It&lt;/code&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/3840542662718200012/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/3840542662718200012' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/3840542662718200012'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/3840542662718200012'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2021/11/mac-google-drive.html' title='Mac 下載 Google Drive '/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-6401083032084571233</id><published>2021-07-24T02:37:00.002+08:00</published><updated>2021-07-24T03:36:16.350+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="firmware"/><category scheme="http://www.blogger.com/atom/ns#" term="SSD"/><title type='text'>MBP 13 2014 改硬碟SSD</title><content type='html'>&lt;p&gt;&amp;nbsp;https://macuknow.com/2019/09/02/2919/macbook-pro-ssd-nvme/&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;https://www.mobile01.com/topicdetail.php?f=481&amp;amp;t=5612298&amp;amp;p=3 &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;firmware &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;https://github.com/gdbinit/firmware_vault/tree/master/EFI&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/6401083032084571233/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/6401083032084571233' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/6401083032084571233'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/6401083032084571233'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2021/07/mbp-13-2014-ssd.html' title='MBP 13 2014 改硬碟SSD'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-3138716290575662038</id><published>2021-07-24T02:24:00.000+08:00</published><updated>2021-07-24T02:24:08.436+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="brew"/><category scheme="http://www.blogger.com/atom/ns#" term="NetBeans 12"/><title type='text'>Mac Big Sur 安裝Netbeans 12</title><content type='html'>&lt;p&gt;下載JDK 8 安裝&lt;/p&gt;&lt;p&gt;&lt;a href=&quot; https://www.oracle.com/tw/java/technologies/javase/javase-jdk8-downloads.html&quot;&gt;&amp;nbsp;https://www.oracle.com/tw/java/technologies/javase/javase-jdk8-downloads.html&lt;/a&gt;&lt;/p&gt;&lt;p&gt;安裝JDK &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;安裝brew&lt;/p&gt;&lt;p&gt;/bin/bash -c &quot;$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)&quot;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;安裝netbeans&lt;/p&gt;&lt;p&gt;brew install --cask netbeans &lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;取得JDK 目錄&lt;/p&gt;&lt;p&gt;/usr/libexec/java_home -V&amp;nbsp;&lt;/p&gt;&lt;p&gt;EX:&lt;/p&gt;&lt;p&gt;/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;編輯netbeans config&lt;/p&gt;&lt;p&gt;vi /Applications/NetBeans/Apache\ NetBeans\ 12.4.app/Contents/Resources/NetBeans/netbeans/etc/netbeans.conf&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;netbeans_jdkhome=&quot;/Library/Java/JavaVirtualMachines/jdk1.8.0_271.jdk/Contents/Home&quot;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;:wq&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;在執行netbeans&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;Done &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/3138716290575662038/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/3138716290575662038' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/3138716290575662038'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/3138716290575662038'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2021/07/mac-big-sur-netbeans-12.html' title='Mac Big Sur 安裝Netbeans 12'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-3170150282011390630</id><published>2020-12-29T13:08:00.005+08:00</published><updated>2020-12-29T13:08:33.885+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Docker"/><title type='text'>Docker 如何進到執行中的VM裡</title><content type='html'>&lt;p&gt;docker exec -it &amp;lt;container name&amp;gt; /bin/bash&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;如果沒有執行只是想做一些事，例如編譯&lt;/p&gt;&lt;p&gt;docker run -it &amp;lt;container name&amp;gt; /bin/bash&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;這樣run 跟 exec 就知道差別了吧！ &lt;br /&gt;&lt;/p&gt;</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/3170150282011390630/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/3170150282011390630' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/3170150282011390630'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/3170150282011390630'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2020/12/docker-vm.html' title='Docker 如何進到執行中的VM裡'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-933507334131813175</id><published>2020-08-14T11:44:00.005+08:00</published><updated>2024-12-13T10:29:21.721+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Docker"/><title type='text'>docker-compose.yml 不小心移除時 服務還是會重啟問題</title><content type='html'>&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;pre style=&quot;-webkit-text-stroke-width: 0px; background-color: var(--black-050); border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: normal; font-variant-caps: normal; font-variant-east-asian: inherit; font-variant-ligatures: normal; font-variant-numeric: inherit; font-weight: 400; letter-spacing: normal; line-height: inherit; margin: 0px 0px 1em; max-height: 600px; orphans: 2; overflow-wrap: normal; overflow: auto; padding: 12px 8px; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; vertical-align: baseline; widows: 2; width: auto; word-spacing: 0px;&quot;&gt;&lt;code style=&quot;background-color: transparent; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;docker container ls
docker rm -f &amp;lt;id&amp;gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;-webkit-text-stroke-width: 0px; background-color: var(--black-050); border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: normal; font-variant-caps: normal; font-variant-east-asian: inherit; font-variant-ligatures: normal; font-variant-numeric: inherit; font-weight: 400; letter-spacing: normal; line-height: inherit; margin: 0px 0px 1em; max-height: 600px; orphans: 2; overflow-wrap: normal; overflow: auto; padding: 12px 8px; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; vertical-align: baseline; widows: 2; width: auto; word-spacing: 0px;&quot;&gt;&lt;code style=&quot;background-color: transparent; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&amp;nbsp;即可 &lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;-webkit-text-stroke-width: 0px; background-color: var(--black-050); border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: normal; font-variant-caps: normal; font-variant-east-asian: inherit; font-variant-ligatures: normal; font-variant-numeric: inherit; font-weight: 400; letter-spacing: normal; line-height: inherit; margin: 0px 0px 1em; max-height: 600px; orphans: 2; overflow-wrap: normal; overflow: auto; padding: 12px 8px; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; vertical-align: baseline; widows: 2; width: auto; word-spacing: 0px;&quot;&gt;&lt;code style=&quot;background-color: transparent; border: 0px; box-sizing: inherit; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: inherit; font-variant: inherit; font-weight: inherit; line-height: inherit; margin: 0px; padding: 0px; vertical-align: baseline; white-space: inherit;&quot;&gt;&lt;br /&gt;&lt;/code&gt;&lt;/pre&gt;&lt;pre style=&quot;-webkit-text-stroke-width: 0px; background-color: var(--black-050); border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: normal; font-variant-caps: normal; font-variant-east-asian: inherit; font-variant-ligatures: normal; font-variant-numeric: inherit; font-weight: 400; letter-spacing: normal; line-height: inherit; margin: 0px 0px 1em; max-height: 600px; orphans: 2; overflow-wrap: normal; overflow: auto; padding: 12px 8px; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; vertical-align: baseline; widows: 2; width: auto; word-spacing: 0px;&quot;&gt;查詢docker-compose file位置&lt;/pre&gt;&lt;pre style=&quot;-webkit-text-stroke-width: 0px; background-color: var(--black-050); border-radius: 3px; border: 0px; box-sizing: inherit; color: #242729; font-family: Consolas, Menlo, Monaco, &amp;quot;Lucida Console&amp;quot;, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;DejaVu Sans Mono&amp;quot;, &amp;quot;Bitstream Vera Sans Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace, sans-serif; font-size: 13px; font-stretch: inherit; font-style: normal; font-variant-caps: normal; font-variant-east-asian: inherit; font-variant-ligatures: normal; font-variant-numeric: inherit; font-weight: 400; letter-spacing: normal; line-height: inherit; margin: 0px 0px 1em; max-height: 600px; orphans: 2; overflow-wrap: normal; overflow: auto; padding: 12px 8px; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; text-transform: none; vertical-align: baseline; widows: 2; width: auto; word-spacing: 0px;&quot;&gt;&lt;br /&gt;&lt;/pre&gt;&lt;pre style=&quot;-webkit-text-stroke-width: 0px; background-color: var(--black-050); border-radius: 3px; border: 0px; box-sizing: inherit; font-stretch: inherit; font-variant-east-asian: inherit; font-variant-numeric: inherit; line-height: inherit; margin: 0px 0px 1em; max-height: 600px; orphans: 2; overflow-wrap: normal; overflow: auto; padding: 12px 8px; text-align: left; text-decoration-color: initial; text-decoration-style: initial; text-indent: 0px; vertical-align: baseline; widows: 2; width: auto;&quot;&gt;&lt;span style=&quot;color: #242729; font-family: Consolas, Menlo, Monaco, Lucida Console, Liberation Mono, DejaVu Sans Mono, Bitstream Vera Sans Mono, Courier New, monospace, sans-serif;&quot;&gt;docker inspect &amp;lt;服務名稱&amp;gt; | grep &quot;com.docker.compose.project.working_dir&quot;&lt;/span&gt;&lt;/pre&gt;</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/933507334131813175/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/933507334131813175' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/933507334131813175'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/933507334131813175'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2020/08/docker-composeyml.html' title='docker-compose.yml 不小心移除時 服務還是會重啟問題'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-1750410422013421947</id><published>2020-06-16T12:35:00.000+08:00</published><updated>2020-06-16T12:35:28.819+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="aws"/><category scheme="http://www.blogger.com/atom/ns#" term="ec2"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ssh"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>SSH 連線 Amazon EC2 主機</title><content type='html'>通常我會把下載的pem檔放到.ssh 裡&lt;br /&gt;mv &amp;lt;下載的pem檔&amp;gt; ~/.ssh/&lt;br /&gt;
chmod 400 ~/.ssh/&amp;lt;下載的pem檔&amp;gt;&lt;br /&gt;
ssh -i ~/.ssh/&amp;lt;下載的pem檔&amp;gt; ubuntu@&amp;lt;IP&amp;gt;&lt;br /&gt;
&lt;br /&gt;
當初在選擇 Amazon AMI 時&lt;br /&gt;
&lt;br /&gt;
若選擇 Amazon Linux AMI 使用者名稱則是 ec2-user&lt;br /&gt;
若選擇 Ubuntu Server LTS 使用者名稱則是 ubuntu</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/1750410422013421947/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/1750410422013421947' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/1750410422013421947'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/1750410422013421947'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2020/06/ssh-amazon-ec2.html' title='SSH 連線 Amazon EC2 主機'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-1112896046189695641</id><published>2019-09-10T16:52:00.002+08:00</published><updated>2019-09-10T16:52:26.853+08:00</updated><title type='text'>playframework建立新專案指定版本</title><content type='html'>playframework建立新專案指定版本&lt;br /&gt;
&lt;br /&gt;
sbt new playframework/play-java-seed.g8 --branch 2.6.x</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/1112896046189695641/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/1112896046189695641' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/1112896046189695641'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/1112896046189695641'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2019/09/playframework.html' title='playframework建立新專案指定版本'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-5148753773372015675</id><published>2019-08-30T12:39:00.007+08:00</published><updated>2024-12-25T15:34:57.850+08:00</updated><title type='text'>透過 Docker 快速建立 openvpn 伺服器</title><content type='html'>&lt;p&gt;此docker install安裝適用 ubuntu 16.04 18.04&lt;br /&gt;
&lt;br /&gt;
如果已安裝docker-compose 那任何linux環境都可以使用&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;sudo apt update &amp;amp;&amp;amp; sudo apt install -y curl vim&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: #1c262d; color: white; font-family: &amp;quot;Roboto Mono&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;curl -fsSL https://get.docker.com -o get-docker.sh&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style=&quot;background-color: #1c262d; color: white; font-family: &amp;quot;Roboto Mono&amp;quot;, monospace; font-size: 14px; white-space: pre;&quot;&gt;sudo sh get-docker.sh&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;sudo adduser&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;&quot;$USER&quot;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &lt;/span&gt;docker&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;sudo reboot&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;
然後再登入一次&lt;br /&gt;
&lt;br /&gt;
接下來有安裝docker-compose 的機器都適用&lt;br /&gt;
&lt;br /&gt;&lt;/p&gt;&lt;div&gt;
nano docker-compose.yml&lt;/div&gt;&lt;div&gt;OR&lt;/div&gt;&lt;div&gt;vi docker-compose.yml&lt;br /&gt;
-------請輸入以下內容&lt;br /&gt;&lt;br /&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;services:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;openvpn:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;container_name: openvpn&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;image: kylemanna/openvpn&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;volumes:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;- ./data:/etc/openvpn&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;devices:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;- /dev/net/tun&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;ports:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;- &#39;1194:1194/udp&#39;&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;cap_add:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;- NET_ADMIN&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;restart: always&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;sysctls:&lt;/span&gt;&lt;/p&gt;&lt;p class=&quot;p1&quot; style=&quot;font-family: Menlo; font-feature-settings: normal; font-kerning: auto; font-optical-sizing: auto; font-size-adjust: none; font-size: 11px; font-stretch: normal; font-variant-alternates: normal; font-variant-east-asian: normal; font-variant-emoji: normal; font-variant-numeric: normal; font-variant-position: normal; font-variation-settings: normal; line-height: normal; margin: 0px;&quot;&gt;&lt;span class=&quot;s1&quot; style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;net.ipv6.conf.all.disable_ipv6: 0&lt;/span&gt;&lt;/p&gt;&lt;div&gt;&lt;span class=&quot;Apple-converted-space&quot; style=&quot;font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;span style=&quot;font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;&quot;&gt;net.ipv6.conf.all.forwarding: 1&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span style=&quot;font-family: Menlo; font-size: 11px; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;----------&lt;/div&gt;
&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 16px; hyphens: none; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; position: relative; tab-size: 4; word-break: normal; z-index: 1;&quot;&gt;&amp;nbsp; &lt;br /&gt;&lt;/div&gt;&lt;div style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-size: 16px; hyphens: none; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; position: relative; tab-size: 4; word-break: normal; z-index: 1;&quot;&gt;&lt;span style=&quot;font-family: &amp;quot;consolas&amp;quot; , &amp;quot;monaco&amp;quot; , &amp;quot;andale mono&amp;quot; , &amp;quot;ubuntu mono&amp;quot; , monospace;&quot;&gt;# 請把200.200.200.200 改成你server的ip或domain name&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;pre class=&quot;language-yaml&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 16px; hyphens: none; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; position: relative; tab-size: 4; word-break: normal; z-index: 1;&quot;&gt;docker compose run --rm &lt;span style=&quot;font-family: &amp;quot;pingfang tc&amp;quot;; font-size: small; white-space: normal;&quot;&gt;openvpn&lt;/span&gt; ovpn_genconfig -u udp://200.200.200.200


# 建立憑證 需要輸入密碼


docker compose run --rm &lt;span style=&quot;font-family: &amp;quot;pingfang tc&amp;quot;; font-size: small; white-space: normal;&quot;&gt;openvpn&lt;/span&gt; ovpn_initpki


# 啟動 ovpn 在背景


docker compose up -d


# 建立一個 client 的憑證 (不須密碼)


docker compose run --rm &lt;span style=&quot;font-family: &amp;quot;pingfang tc&amp;quot;; font-size: small; white-space: normal;&quot;&gt;openvpn&lt;/span&gt; easyrsa build-client-full tokyo nopass


# 將 client 的憑證匯出


docker compose run --rm &lt;span style=&quot;font-family: &amp;quot;pingfang tc&amp;quot;; font-size: small; white-space: normal;&quot;&gt;openvpn&lt;/span&gt; ovpn_getclient tokyo &amp;gt; tokyo.ovpn
&amp;nbsp;&lt;/pre&gt;
&lt;pre class=&quot;language-yaml&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 16px; hyphens: none; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; position: relative; tab-size: 4; word-break: normal; z-index: 1;&quot;&gt;如需第二人使用請建立第二組名稱像 tokyo2 &lt;/pre&gt;
&lt;br /&gt;
接下來就下載憑證到你的電腦使用即可。&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
安裝openvpn-client 請自行上google查詢。&lt;br /&gt;
&lt;pre class=&quot;language-yaml&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 16px; hyphens: none; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; position: relative; tab-size: 4; word-break: normal; z-index: 1;&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-yaml&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; hyphens: none; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; position: relative; tab-size: 4; word-break: normal; z-index: 1;&quot;&gt;&lt;span style=&quot;font-family: Consolas, Monaco, Andale Mono, Ubuntu Mono, monospace;&quot;&gt;&lt;span style=&quot;font-size: 16px;&quot;&gt;記得開port udp &quot;1194&quot;,tcp &quot;443&quot;&lt;/span&gt;&lt;/span&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-yaml&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 16px; hyphens: none; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; position: relative; tab-size: 4; word-break: normal; z-index: 1;&quot;&gt;&lt;/pre&gt;
&lt;pre class=&quot;language-yaml&quot; style=&quot;background-attachment: initial; background-clip: initial; background-image: initial; background-origin: initial; background-position: initial; background-repeat: initial; background-size: initial; box-sizing: border-box; color: #cccccc; font-family: Consolas, Monaco, &amp;quot;Andale Mono&amp;quot;, &amp;quot;Ubuntu Mono&amp;quot;, monospace; font-size: 16px; hyphens: none; line-height: 1.5; margin-bottom: 0.5em; margin-top: 0.5em; overflow-wrap: normal; overflow: auto; padding: 1em; position: relative; tab-size: 4; word-break: normal; z-index: 1;&quot;&gt;&lt;/pre&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/5148753773372015675/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/5148753773372015675' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/5148753773372015675'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/5148753773372015675'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2019/08/docker-openvpn.html' title='透過 Docker 快速建立 openvpn 伺服器'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-1908780305660987367</id><published>2019-07-27T10:39:00.000+08:00</published><updated>2019-07-27T10:39:02.656+08:00</updated><title type='text'>docker 無法登入</title><content type='html'>在MAC環境下出現&lt;br /&gt;
&lt;br /&gt;
Error saving credentials: error storing credentials - err: exit status 1, out: `User interaction is not allowed.`&lt;br /&gt;
&lt;br /&gt;
vi ~/.docker/config.json&lt;br /&gt;
&lt;br /&gt;
將所有&lt;code&gt;credsStore改為，&lt;/code&gt;&lt;code&gt;&lt;code&gt;credsStore只要保留一行即可&lt;/code&gt;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;&quot;credsStore&quot;: &quot;&quot;&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;code&gt;更改完後&lt;/code&gt;&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;&lt;/code&gt;
&lt;code&gt;docker login 即可&lt;/code&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
其他系統(可試試，mac不建議)&lt;br /&gt;
rm /usr/local/bin/docker-credential-osxkeychain </content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/1908780305660987367/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/1908780305660987367' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/1908780305660987367'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/1908780305660987367'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2019/07/docker.html' title='docker 無法登入'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-3272970917602647684</id><published>2019-07-23T16:22:00.000+08:00</published><updated>2019-07-23T16:22:27.742+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Docker"/><title type='text'>編寫dockerfile的好參考調整</title><content type='html'>https://blog.docker.com/2019/07/intro-guide-to-dockerfile-best-practices/?fbclid=IwAR3BrcP6fHScJJufmvR0CHpFMYRYyUovwuR8bldXqETAIOtf1_0OfAce5LQ&lt;br /&gt;
&lt;br /&gt;
- 調整 COPY 的位置, 和精確目錄&lt;br /&gt; - 有計劃合併  RUN 指令, 減少 layer cache&lt;br /&gt; - 刪除暫存檔&lt;br /&gt;
- 等… </content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/3272970917602647684/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/3272970917602647684' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/3272970917602647684'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/3272970917602647684'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2019/07/dockerfile.html' title='編寫dockerfile的好參考調整'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-9031085104587510623</id><published>2019-07-21T10:22:00.000+08:00</published><updated>2019-07-21T10:24:32.398+08:00</updated><title type='text'>docker-compose docker login 無法登入 Cannot autolaunch D-Bus without X11 $DISPLAY</title><content type='html'>由於使用了&amp;nbsp;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-variant-ligatures: no-common-ligatures;&quot;&gt;php:7.2-fpm , &lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-variant-ligatures: no-common-ligatures;&quot;&gt;好死不死2019-07-21的8天前更新了新版本…&amp;nbsp;，重點是&lt;/span&gt;&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-variant-ligatures: no-common-ligatures;&quot;&gt;mysql-client重BUILD後發生錯誤，無法安裝…&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-variant-ligatures: no-common-ligatures;&quot;&gt;(我是查不到上個tag叫什麼… 沒有列表，有的話告知一下，感謝。)&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-variant-ligatures: no-common-ligatures;&quot;&gt;只好回舊機器重編後上push上docker，好不容易編好後卻發生…&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;
&lt;span style=&quot;font-family: &amp;quot;menlo&amp;quot;; font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;





&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;Cannot autolaunch D-Bus without X11 $DISPLAY&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;發生這件事，又剛好是裝在GCP的機器上，不會有&lt;/span&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;X11…&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;找了網路上很多的方法後…&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;得到的解法是…&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;sudo apt-get autoremove --purge docker-compose&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;相信我，就這麼做吧，如果還有在營運的機器，就斷線個幾分鐘吧…&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;可以在下docker-compose down之前先做&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;這裡先套件名稱就看你怎麼取，範例是：&lt;/span&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;php72fpm&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;docker build -t {your id}/php72fpm .&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;docker push {your id}/php72fpm:latest&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;接下來就可以在你的docker-compose上使用&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;s1&quot;&gt;image:&lt;/span&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;{your id}/php72fpm&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;以上…&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;還有記得把docker-compose裝回來…&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;




&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;apt install docker-compose&lt;/span&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;另外，如果各位信任的過小弟又剛好踫到這個問題的話，可以使用小弟的image&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;attz/&lt;/span&gt;&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;php72fpm&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;以下是Dockerfile內容&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;---------&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;FROM &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;php:7.2-fpm&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&amp;nbsp;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;# Set working directory&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;WORKDIR &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;/var/www&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;# Install dependencies&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;RUN &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;apt-get update &amp;amp;&amp;amp; apt-get install -y \&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;build-essential \&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;mysql-client \&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;libpng-dev \&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;libjpeg62-turbo-dev \&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;libfreetype6-dev \&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;locales \&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;zip \&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;jpegoptim optipng pngquant gifsicle \&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;vim \&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;unzip \&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;git \&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp; &amp;nbsp; &lt;/span&gt;curl&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;# Clear cache&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;RUN &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;apt-get clean &amp;amp;&amp;amp; rm -rf /var/lib/apt/lists/*&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;# Install extensions&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;RUN &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;docker-php-ext-install pdo_mysql mbstring zip exif pcntl&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;RUN &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;docker-php-ext-configure gd --with-gd --with-freetype-dir=/usr/include/ --with-jpeg-dir=/usr/include/ --with-png-dir=/usr/include/&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;RUN &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;docker-php-ext-install gd&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;# Install composer&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;RUN &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;curl -sS https://getcomposer.org/installer | php -- --install-dir=/usr/local/bin --filename=composer&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s2&quot;&gt;&lt;/span&gt;&lt;br /&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;# Expose port 9000 and start php-fpm server&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;EXPOSE &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;9000&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p2&quot;&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #5620f4}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #d17125}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #ca3323}
span.s1 {font-variant-ligatures: no-common-ligatures}
span.s2 {font-variant-ligatures: no-common-ligatures; color: #000000}
span.s3 {font-variant-ligatures: no-common-ligatures; color: #d17125}
&lt;/style&gt;




&lt;/div&gt;
&lt;div class=&quot;p3&quot;&gt;
&lt;span class=&quot;s3&quot;&gt;CMD &lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;[&lt;/span&gt;&lt;span class=&quot;s1&quot;&gt;&quot;php-fpm&quot;&lt;/span&gt;&lt;span class=&quot;s2&quot;&gt;]&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span style=&quot;font-variant-ligatures: no-common-ligatures;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;







&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000; min-height: 13.0px}
p.p3 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #5620f4}
span.s1 {font-variant-ligatures: no-common-ligatures; color: #d17125}
span.s2 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/9031085104587510623/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/9031085104587510623' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/9031085104587510623'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/9031085104587510623'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2019/07/docker-compose-docker-login-cannot.html' title='docker-compose docker login 無法登入 Cannot autolaunch D-Bus without X11 $DISPLAY'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-2644235768953715942</id><published>2019-05-15T11:56:00.002+08:00</published><updated>2019-05-15T11:56:45.161+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Docker"/><title type='text'>看docker狀態</title><content type='html'>&lt;pre style=&quot;font-family: &amp;quot;Courier New&amp;quot; !important; font-size: 12px; overflow-wrap: break-word; padding: 0px; white-space: pre-wrap;&quot;&gt;docker stats --no-stream --&lt;span style=&quot;line-height: 1.5 !important; margin: 0px; padding: 0px;&quot;&gt;format \
    &lt;/span&gt;&lt;span style=&quot;color: maroon; line-height: 1.5 !important; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;span style=&quot;color: maroon; line-height: 1.5 !important; margin: 0px; padding: 0px;&quot;&gt;{\&quot;container\&quot;:\&quot;{{ .Container }}\&quot;,\&quot;memory\&quot;:{\&quot;raw\&quot;:\&quot;{{ .MemUsage }}\&quot;,\&quot;percent\&quot;:\&quot;{{ .MemPerc }}\&quot;},\&quot;cpu\&quot;:\&quot;{{ .CPUPerc }}\&quot;}&lt;/span&gt;&lt;span style=&quot;color: maroon; line-height: 1.5 !important; margin: 0px; padding: 0px;&quot;&gt;&quot;&lt;/span&gt;&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/2644235768953715942/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/2644235768953715942' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/2644235768953715942'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/2644235768953715942'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2019/05/docker.html' title='看docker狀態'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-3829837296810139251</id><published>2019-05-09T17:02:00.002+08:00</published><updated>2019-05-09T17:02:58.040+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="Play Framework 2"/><category scheme="http://www.blogger.com/atom/ns#" term="scala"/><title type='text'>PlayFramewrok 2.6</title><content type='html'>產生2.6專案檔 &lt;br /&gt;
&lt;br /&gt;
sbt new playframework/play-java-seed.g8 -b 2.6.x &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
產生play.http.secret.key&lt;br /&gt;
&lt;br /&gt;
./sbt playGenerateSecret</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/3829837296810139251/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/3829837296810139251' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/3829837296810139251'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/3829837296810139251'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2019/05/playframewrok-26.html' title='PlayFramewrok 2.6'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-1991320068080206586</id><published>2019-03-28T03:07:00.002+08:00</published><updated>2019-03-28T03:07:52.374+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="command line"/><category scheme="http://www.blogger.com/atom/ns#" term="linux"/><category scheme="http://www.blogger.com/atom/ns#" term="ubuntu"/><title type='text'>UBUNTU LINUX How to open a folder (with GUI) from terminal command line</title><content type='html'>&lt;code&gt;nautilus .&lt;/code&gt;</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/1991320068080206586/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/1991320068080206586' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/1991320068080206586'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/1991320068080206586'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2019/03/ubuntu-linux-how-to-open-folder-with.html' title='UBUNTU LINUX How to open a folder (with GUI) from terminal command line'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-2119541780247512021</id><published>2019-03-15T11:39:00.001+08:00</published><updated>2019-03-15T11:40:43.926+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="桌遊"/><title type='text'>完美同盟/Perfect League</title><content type='html'>完美同盟/Perfect League&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdVudh3Otxmj4p4w9gLIx3t7ymyd3yz3OAQ3xnQyoEZeeJ40m3AArT_-vV_30W-MPTPgNbuULdj8LjocaiwiRlE8on8O9EsgdeN3tzyJoeow9kz0T0RcLYyd59zTucy1rbWOke/s1600/%25E5%25B0%2581%25E9%259D%25A2-297x300.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdVudh3Otxmj4p4w9gLIx3t7ymyd3yz3OAQ3xnQyoEZeeJ40m3AArT_-vV_30W-MPTPgNbuULdj8LjocaiwiRlE8on8O9EsgdeN3tzyJoeow9kz0T0RcLYyd59zTucy1rbWOke/s400/%25E5%25B0%2581%25E9%259D%25A2-297x300.jpg&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;iframe allow=&quot;accelerometer; autoplay; encrypted-media; gyroscope; picture-in-picture&quot; allowfullscreen=&quot;&quot; frameborder=&quot;0&quot; height=&quot;315&quot; src=&quot;https://www.youtube.com/embed/Bv6VA6VdwpI&quot; width=&quot;560&quot;&gt;&lt;/iframe&gt;

&lt;br /&gt;
&lt;ol&gt;
&lt;li&gt;時間 &amp;nbsp;20-30MIN&lt;/li&gt;
&lt;li&gt;人數 &amp;nbsp;4 OR 6人&lt;/li&gt;
&lt;li&gt;年齡 &amp;nbsp;6歲以上&lt;/li&gt;
&lt;li&gt;類型 &amp;nbsp;卡牌&lt;/li&gt;
&lt;li&gt;機制 &amp;nbsp;Co-operative Play 合作遊戲、Hand Management 手牌管理、Memory 記憶、Trick-taking 牌組搭配&lt;/li&gt;
&lt;li&gt;設計師 &amp;nbsp;Way Of Change、ALex Tseng&lt;/li&gt;
&lt;li&gt;美術 &amp;nbsp;Tanner Lai&lt;/li&gt;
&lt;li&gt;編輯 &amp;nbsp;Bountiful Living&lt;/li&gt;
&lt;li&gt;出版年 2016&lt;/li&gt;
&lt;/ol&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQjARK5_zS5s5VtSBJhdGuNd5idkLprvANTHdcFSTWTQ_pGmeZbzzEl7a6OVJk-megWyfgk1BmXSynLoG9rhhyc_XohAGr4cJ_KMXnH5blvxcE_aJvi9a6-3D1na51jSL-46oF/s1600/DSC05957_1-768x512.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;213&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgQjARK5_zS5s5VtSBJhdGuNd5idkLprvANTHdcFSTWTQ_pGmeZbzzEl7a6OVJk-megWyfgk1BmXSynLoG9rhhyc_XohAGr4cJ_KMXnH5blvxcE_aJvi9a6-3D1na51jSL-46oF/s320/DSC05957_1-768x512.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMndPue63q2vORUKoUH8EN5CPYBflIKaBvVe5qvUQB-gAO9txPqYskMcxhSV_EaWAqF-ptxjjibSNRj8a0Y-R7ZruSROcqrGZHCS5OStQXGavAnl7vk4ayKVmWiV6_8GkJouE6/s1600/DSC06512_1-768x512.jpg&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;213&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgMndPue63q2vORUKoUH8EN5CPYBflIKaBvVe5qvUQB-gAO9txPqYskMcxhSV_EaWAqF-ptxjjibSNRj8a0Y-R7ZruSROcqrGZHCS5OStQXGavAnl7vk4ayKVmWiV6_8GkJouE6/s320/DSC06512_1-768x512.jpg&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
&lt;b&gt;遊戲基本介紹&lt;/b&gt;&lt;br /&gt;
想認識新朋友 (異性朋友)，不可或缺的必備良藥！ 3回合內玩出默契與互動，兩人一組充足的互動特性，讓原本尷尬與陌生的新朋友變的熱絡，在遊戲回合後自然而然讓兩人有更多的討論。&lt;br /&gt;
&lt;b&gt;遊戲規則介紹&lt;/b&gt;&lt;br /&gt;
這是一款兩個人一組的默契遊戲，經由與隊友交換手牌，組合桌上公牌，搭配出最大牌型決勝負。遊戲過程主要是選牌(宣告)、交換手牌、出牌、組合牌型 四個步驟來進行，反覆直到有隊伍取得10分獲勝。&lt;br /&gt;
[ 準備階段 ]&lt;br /&gt;
4人遊戲時，先將特殊牌(花朵圖案)挑出，然後每人發11張手牌及2張特殊牌，同組玩家對坐且左右兩邊為其他Team的玩家&lt;br /&gt;
&lt;a href=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA01TGPXZ1GwZ3IzGW9n_45DicNHr12-gP5S2XmV74p4N6ic6QEZ6oWWsgWwtZKSkAqWVUmBjt7B8hrQq_MVrksdAHxDftNvypQ-b_qbDh0l1lVziZVjH8eS6isY6DgeY7t2dE/s1600/%25E7%258E%25A9%25E5%25AE%25B6.png&quot; imageanchor=&quot;1&quot;&gt;&lt;img border=&quot;0&quot; height=&quot;124&quot; src=&quot;https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEhA01TGPXZ1GwZ3IzGW9n_45DicNHr12-gP5S2XmV74p4N6ic6QEZ6oWWsgWwtZKSkAqWVUmBjt7B8hrQq_MVrksdAHxDftNvypQ-b_qbDh0l1lVziZVjH8eS6isY6DgeY7t2dE/s320/%25E7%258E%25A9%25E5%25AE%25B6.png&quot; width=&quot;320&quot; /&gt;&lt;/a&gt;&lt;br /&gt;
[ 回合開始 ]&lt;br /&gt;
回合開始時在場上開啟三張公用牌&lt;br /&gt;
[ 宣告(選牌) ]&lt;br /&gt;
參考桌上公牌，思考最佳牌組組合，起始玩家及起始玩家右手邊的玩家，需要選擇要選2張或是1張公牌來組合牌型，被選過的牌，另一隊也可以選擇。&lt;br /&gt;
[ 交換手牌 ]&lt;br /&gt;
選擇1張公牌的隊伍可以跟同伴交換3張手牌，選擇2張的隊伍只能交換1張手牌，藉由交換手牌暗示隊友如何出牌，過程不可提示牌組相關的訊息。(註:特殊牌不能交換)&lt;br /&gt;
[ 出牌 ]&lt;br /&gt;
從起始玩家開始，順時針每人輪流出1張牌，每人需出2張牌，與隊友在桌上選好的公牌搭配(選2張的隊伍，可以選1張或2張公牌組合)，組合成最大的5張牌牌組與敵隊比大，結算後含公牌(不含手牌)放入棄牌堆。&lt;br /&gt;
[ 結算 ]&lt;br /&gt;
每回合獲勝隊伍會得到2顆鑽石，第二名會得到1顆，1顆鑽石代表1分，紅寶石代表5分，可自行決定達標獲勝總分，培養最佳默契。(註:使用剩餘的牌繼續下一回合遊戲，最後剩3張(含特殊牌)遊戲結束。)&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;遊戲特別之處&lt;/b&gt;&lt;br /&gt;
1.只要10分鐘，將尷尬化為無形，就是這個遊戲最強的特別之處！&lt;br /&gt;
2.利用交換手牌加深雙方互動，組合不到牌組不要動怒，多點提示啦。&lt;br /&gt;
3.獨特的文青風格卡牌，每張卡片都有他獨特的含意，送禮物最快。&lt;br /&gt;
4.閃亮的鑽石及紅寶石，姐妹們一看就愛，詢問度很高。&lt;br /&gt;
5.變體規則，每回合與隊友整付手牌交換(記牌)會有更深的感觸喔。</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/2119541780247512021/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/2119541780247512021' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/2119541780247512021'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/2119541780247512021'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2019/03/perfect-league.html' title='完美同盟/Perfect League'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media="http://search.yahoo.com/mrss/" url="https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEjdVudh3Otxmj4p4w9gLIx3t7ymyd3yz3OAQ3xnQyoEZeeJ40m3AArT_-vV_30W-MPTPgNbuULdj8LjocaiwiRlE8on8O9EsgdeN3tzyJoeow9kz0T0RcLYyd59zTucy1rbWOke/s72-c/%25E5%25B0%2581%25E9%259D%25A2-297x300.jpg" height="72" width="72"/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-4140534023230707714</id><published>2019-02-08T03:06:00.000+08:00</published><updated>2019-02-08T03:06:08.196+08:00</updated><title type='text'>如何使用USB安裝macOS 10.13 High Sierra 如何製作 MAC USB 系統安裝隨身碟</title><content type='html'>&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;&amp;nbsp;&lt;/pre&gt;
&lt;pre&gt;sudo /Applications/Install\ macOS\ High\ Sierra.app/Contents/Resources/createinstallmedia --volume /Volumes/USB --applicationpath /Applications/Install\ macOS\ High\ Sierra.app&lt;/pre&gt;
</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/4140534023230707714/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/4140534023230707714' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/4140534023230707714'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/4140534023230707714'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2019/02/usbmacos-1013-high-sierra-mac-usb.html' title='如何使用USB安裝macOS 10.13 High Sierra 如何製作 MAC USB 系統安裝隨身碟'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-1215131993447692468</id><published>2019-02-08T03:05:00.002+08:00</published><updated>2019-02-08T03:05:57.201+08:00</updated><title type='text'>如何使用USB安裝macOS Mojave 如何製作 MAC USB 系統安裝隨身碟</title><content type='html'>&lt;style type=&quot;text/css&quot;&gt;
p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #000000}
span.s1 {font-variant-ligatures: no-common-ligatures}
&lt;/style&gt;


&lt;br /&gt;
&lt;div class=&quot;p1&quot;&gt;
&lt;span class=&quot;s1&quot;&gt;sudo /Applications/Install\ macOS\ Mojave.app/Contents/Resources/createinstallmedia --volume /Volumes/16G --applicationpath /Applications/Install\ macOS\ Mojave.app&lt;/span&gt;&lt;/div&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/1215131993447692468/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/1215131993447692468' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/1215131993447692468'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/1215131993447692468'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2019/02/usbmacos-mojave-mac-usb.html' title='如何使用USB安裝macOS Mojave 如何製作 MAC USB 系統安裝隨身碟'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-35479981.post-2521939339054916574</id><published>2019-01-30T11:19:00.003+08:00</published><updated>2019-01-30T11:19:36.466+08:00</updated><category scheme="http://www.blogger.com/atom/ns#" term="mysql"/><category scheme="http://www.blogger.com/atom/ns#" term="備份"/><title type='text'>安全的MySQL備份方式</title><content type='html'>如果你收到這樣的mail 這代表，你將 password 寫在你的script上了&lt;br /&gt;
&lt;br /&gt;
mysqldump: [Warning] Using a password on the command line interface can be insecure.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;解決方案&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mysql_config_editor set --login-path=user1 --host=127.0.0.1 --user=root --password&lt;br /&gt;
&lt;br /&gt;
此行會產生加密檔，協助登入&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
mysql --login-path=user1&lt;br /&gt;
&lt;br /&gt;
這裡的user1 就是mysql_config_editor 的 --login-path，可以測試看看能否進入MySQL&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/usr/bin/mysqldump --login-path=user1 [database name] &amp;gt; db/data_$(date +&quot;%F_%T&quot;).sql &lt;br /&gt;
&lt;br /&gt;
使用此行即可依時間備份</content><link rel='replies' type='application/atom+xml' href='http://attzws.blogspot.com/feeds/2521939339054916574/comments/default' title='張貼留言'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment/fullpage/post/35479981/2521939339054916574' title='0 個意見'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/2521939339054916574'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/35479981/posts/default/2521939339054916574'/><link rel='alternate' type='text/html' href='http://attzws.blogspot.com/2019/01/mysql.html' title='安全的MySQL備份方式'/><author><name>原本不是要寫攻略</name><uri>http://www.blogger.com/profile/01647904945154606944</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>