{"id":462,"date":"2021-09-16T01:59:00","date_gmt":"2021-09-16T01:59:00","guid":{"rendered":"https:\/\/262235.xyz\/?p=462"},"modified":"2021-09-16T01:59:00","modified_gmt":"2021-09-16T01:59:00","slug":"462","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2021\/09\/16\/462\/","title":{"rendered":"Docker\u591a\u9636\u6bb5\u6784\u9020: lolcat  \u7ec8\u7aef\u4e2d\u8f93\u51fa\u5f69\u8679\u7279\u6548\u7684\u547d\u4ee4\u884c\u5de5\u5177"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/09\/1047857923.gif\" alt=\"GIF.gif\" title=\"GIF.gif\"><\/p>\n<p>Lolcat \u662f\u4e00\u4e2a\u9488\u5bf9 Linux\uff0cBSD \u548c OSX \u5e73\u53f0\u7684\u5de5\u5177\uff0c\u5b83\u7c7b\u4f3c\u4e8e cat \u547d\u4ee4\uff0c\u5e76\u4e3a cat \u7684\u8f93\u51fa\u6dfb\u52a0\u5f69\u8679\u822c\u7684\u8272\u5f69\u3002 Lolcat \u4e3b\u8981\u7528\u4e8e\u5728 Linux \u7ec8\u7aef\u4e2d\u4e3a\u6587\u672c\u6dfb\u52a0\u5f69\u8679\u822c\u7684\u8272\u5f69\u3002<br \/>\u7531\u4e8e <code>Lolcat<\/code> \u662f\u4e00\u4e2a <code>ruby gem<\/code> \u7a0b\u5e8f\uff0c\u6240\u4ee5\u5728\u4f60\u7684\u7cfb\u7edf\u4e2d\u5fc5\u987b\u5b89\u88c5\u6709\u6700\u65b0\u7248\u672c\u7684 RUBY\u3002<\/p>\n<h3>\u6b63\u5e38\u5b89\u88c5 <code>lolcat<\/code> \u547d\u4ee4\u4e5f\u5f88\u7b80\u5355\uff0c\u987a\u4fbf\u628a <code>figlet<\/code> \u4e5f\u5b89\u88c5\u4e86<\/h3>\n<pre><code>apt install ruby figlet\ngem install lolcat<\/code><\/pre>\n<h3>\u901a\u8fc7\u7ba1\u9053\u8fde\u63a5 <code>lolcat<\/code> \u548c <code>figlet<\/code> \u547d\u4ee4\u3002Figlet \u662f\u4e00\u4e2a\u5c55\u793a\u7531\u5e38\u89c4\u7684\u5c4f\u5e55\u5b57\u7b26\u7ec4\u6210\u7684\u5de8\u5927\u5b57\u7b26\u4e32\u7684\u5e94\u7528\u3002<\/h3>\n<pre><code>figlet 'Docker Lolcat' | lolcat\necho 'Docker Lolcat' | lolcat -a -d 500<\/code><\/pre>\n<h1>Docker\u591a\u9636\u6bb5\u6784\u9020\u6a21\u7248\u6587\u4ef6 <a href=\"https:\/\/github.com\/hongwenjun\/nginx-php\/blob\/main\/lolcat\/Dockerfile\">Dockerfile<\/a><\/h1>\n<pre><code>docker run --rm -it hongwenjun\/lolcat Dockerfile<\/code><\/pre>\n<h3>\u4e5f\u53ef\u4ee5\u81ea\u5df1\u6253\u9020 Dokcer \u5bb9\u5668\u65b9\u5f0f\u7684\u8fd0\u884c Locat\uff0c\u4e0d\u7528\u5b89\u88c5\uff0c\u4e00\u884c\u547d\u4ee4\u76f4\u63a5\u4f7f\u7528<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/09\/3029489565.png\" alt=\"lolcat.png\" title=\"lolcat.png\"><\/p>\n<pre><code>docker run --rm -it -v $(pwd):\/app\/ \\r\n  hongwenjun\/lolcat Dockerfile<\/code><\/pre>\n<h3>\u5982\u56fe\u663e\u793a\u7684\u662f<code>Locat<\/code>\u955c\u50cf\u7684 <a href=\"https:\/\/github.com\/hongwenjun\/nginx-php\/blob\/main\/lolcat\/Dockerfile\">Dockerfile<\/a><\/h3>\n<ul>\n<li>\u4f7f\u7528 <code>-v $(pwd):\/app\/<\/code> \u628a\u5bbf\u4e3b\u673a\u5f53\u524d\u76ee\u5f55\u6302\u8f7d\u5230\u5bb9\u5668 \/app\/\u76ee\u5f55<\/li>\n<li>\u7136\u540e\u8c03\u7528\u5bb9\u5668\u4e2d\u7684 <code>lolcat<\/code> \u5f69\u8272\u6587\u5b57\u5316\u8f93\u51fa \u6302\u8f7d\u7684 \u6587\u4ef6<\/li>\n<\/ul>\n<h3>\u6784\u9020\u8fd9\u4e2a\u955c\u50cf\u6709\u4ec0\u4e48\u610f\u4e49: <code>\u4e3b\u8981\u662f\u505a\u4e3a\u7b14\u8bb0\u4f7f\u7528\u7684\uff0c\u96c6\u6210\u5230\u5feb\u901f\u547d\u4ee4\u680f\uff0c\u663e\u793a\u5e38\u7528 \u6a21\u7248\u548c\u547d\u4ee4\u4f7f\u7528<\/code><\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/lyvba.com\/wp-content\/uploads\/2021\/09\/3691647630.png\" alt=\"xshell.png\" title=\"xshell.png\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lolcat \u662f\u4e00\u4e2a\u9488\u5bf9 Linux\uff0cBSD \u548c OSX \u5e73\u53f0\u7684\u5de5\u5177\uff0c\u5b83\u7c7b\u4f3c\u4e8e cat \u547d\u4ee4\uff0c\u5e76\u4e3a  [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[15,49],"class_list":["post-462","post","type-post","status-publish","format-standard","hentry","category-docker","tag-docker","tag-xshell"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=462"}],"version-history":[{"count":0,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/462\/revisions"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}