{"id":38,"date":"2020-12-14T21:06:36","date_gmt":"2020-12-14T13:06:36","guid":{"rendered":"http:\/\/zoran.090702.xyz\/?p=38"},"modified":"2020-12-14T21:06:36","modified_gmt":"2020-12-14T13:06:36","slug":"%e8%b0%b7%e6%ad%8c%e4%ba%91%e5%ae%89%e8%a3%85docker%ef%bc%8c%e5%ae%9e%e7%8e%b0%e7%94%b5%e6%8a%a5%e7%8b%ac%e7%ab%8b%e4%bb%a3%e7%90%86","status":"publish","type":"post","link":"https:\/\/zoran.090702.xyz\/?p=38","title":{"rendered":"\u8c37\u6b4c\u4e91\u5b89\u88c5docker\uff0c\u5b9e\u73b0\u7535\u62a5\u72ec\u7acb\u4ee3\u7406"},"content":{"rendered":"<div>1\uff1a\u5b89\u88c5Docker<\/div>\n<div>ssh\u94fe\u63a5vps\uff0c\u8f93\u5165<\/div>\n<div><span data-en-has-metadata=\"true\">sudo -i<\/span><\/div>\n<div>\u83b7\u53d6\u7ba1\u7406\u5458\u6743\u9650<\/div>\n<div><\/div>\n<div>1.1\u00a0\u5982\u679c\u5df2\u5b89\u88c5\u65e7\u7248\u672cdocker\uff0c\u8bf7\u6267\u884c\u5378\u8f7d\u5b83\u4eec\uff1a<\/div>\n<div><span data-en-has-metadata=\"true\">apt-get remove docker docker-engine\u00a0<\/span><span data-en-has-metadata=\"true\"><a href=\"http:\/\/docker.io\/\" shape=\"rect\" data-en-has-metadata=\"true\">docker.io<\/a>\u00a0containerd runc<\/span><\/div>\n<div><\/div>\n<div>1.2 \u8bbe\u7f6e\u5b58\u50a8\u5e93<\/div>\n<div><\/div>\n<div>\u66f4\u65b0apt\u5305\u7d22\u5f15\uff1a<\/div>\n<div><span data-en-has-metadata=\"true\">apt-get update<\/span><\/div>\n<div><\/div>\n<div><\/div>\n<div>\u5b89\u88c5\u5305\u4ee5\u5141\u8bb8apt\u901a\u8fc7HTTPS\u4f7f\u7528\u5b58\u50a8\u5e93\uff1a<\/div>\n<div><span data-en-has-metadata=\"true\">apt-get install \\<\/span><\/div>\n<div><span data-en-has-metadata=\"true\">apt-transport-https \\<\/span><\/div>\n<div><span data-en-has-metadata=\"true\">ca-certificates \\<\/span><\/div>\n<div><span data-en-has-metadata=\"true\">curl \\<\/span><\/div>\n<div><span data-en-has-metadata=\"true\">gnupg2 \\<\/span><\/div>\n<div><span data-en-has-metadata=\"true\">software-properties-common<\/span><\/div>\n<div><\/div>\n<div>\u6dfb\u52a0Docker\u7684\u5b98\u65b9GPG\u5bc6\u94a5\uff1a<\/div>\n<div><span data-en-has-metadata=\"true\">curl -fsSL\u00a0<a href=\"https:\/\/download.docker.com\/linux\/debian\/gpg\" shape=\"rect\" data-en-has-metadata=\"true\">https:\/\/download.docker.com\/linux\/debian\/gpg<\/a>\u00a0| sudo apt-key add &#8211;<\/span><\/div>\n<div><\/div>\n<div>\u9a8c\u8bc1\u60a8\u73b0\u5728\u62e5\u6709\u5e26\u6307\u7eb9\u7684\u5bc6\u94a5<\/div>\n<div><span data-en-has-metadata=\"true\">apt-key fingerprint 0EBFCD88<\/span><\/div>\n<div><\/div>\n<div>\u6dfb\u52a0\u6e90<\/div>\n<div><span data-en-has-metadata=\"true\">add-apt-repository \\<\/span><\/div>\n<div><span data-en-has-metadata=\"true\">&#8220;deb [arch=amd64]\u00a0<a href=\"https:\/\/download.docker.com\/linux\/debian\" shape=\"rect\" data-en-has-metadata=\"true\">https:\/\/download.docker.com\/linux\/debian<\/a>\u00a0\\<\/span><\/div>\n<div><span data-en-has-metadata=\"true\">$(lsb_release -cs) \\<\/span><\/div>\n<div><span data-en-has-metadata=\"true\">stable&#8221;<\/span><\/div>\n<div><\/div>\n<div>1.3 \u5b89\u88c5Docker CE\uff1a<\/div>\n<div><span data-en-has-metadata=\"true\">apt-get update<\/span><\/div>\n<div><span data-en-has-metadata=\"true\">apt-get install docker-ce docker-ce-cli\u00a0<a href=\"http:\/\/containerd.io\/\" shape=\"rect\" data-en-has-metadata=\"true\">containerd.io<\/a><\/span><\/div>\n<div><\/div>\n<div>1.4 \u9a8c\u8bc1<\/div>\n<div>\u542f\u52a8docker(\u5982\u679c\u6ca1\u6709\u542f\u52a8)<\/div>\n<div><span data-en-has-metadata=\"true\">systemctl start docker<\/span><\/div>\n<div><\/div>\n<div>\u67e5\u770b\u7248\u672c(\u53ef\u4e0d\u6267\u884c)<\/div>\n<div><span data-en-has-metadata=\"true\">docker &#8211;version<\/span><\/div>\n<div><\/div>\n<div>\u901a\u8fc7\u8fd0\u884chello-world\u00a0\u6620\u50cf\u9a8c\u8bc1\u662f\u5426\u6b63\u786e\u5b89\u88c5\u4e86Docker CE<\/div>\n<div><span data-en-has-metadata=\"true\">docker run hello-world<\/span><\/div>\n<div><\/div>\n<div>\u51fa\u73b0\u4ee5\u4e0b\u4fe1\u606f\u8bf4\u660e\u5b89\u88c5\u6210\u529f<\/div>\n<div><img decoding=\"async\" class=\"en-media en-media-image\" src=\"https:\/\/www.evernote.com\/shard\/s437\/sh\/6f06eeeb-9a4a-412d-ba07-606bb85a0741\/70a3cf4b8095212f3daa55966361f1f5\/res\/509f488d-723f-4d41-a3da-5ec4fe7d1b40\" data-hash=\"02e8a72390e79bd3e1436b9596433168\" data-type=\"image\/png\" data-url=\"https:\/\/www.evernote.com\/shard\/s437\/sh\/6f06eeeb-9a4a-412d-ba07-606bb85a0741\/70a3cf4b8095212f3daa55966361f1f5\/res\/509f488d-723f-4d41-a3da-5ec4fe7d1b40\" data-yjs-hook=\"en-resource\" data-reference=\"resource-0\" data-filename=\"\" data-filesize=\"515836\" data-timestamp=\"1607950305770\" \/><\/div>\n<div><\/div>\n<div><\/div>\n<div>2\uff1aTG\u8054\u7cfb@MTProxybot\u5b98\u65b9BOT\u00a0<a href=\"https:\/\/t.me\/MTProxybot\" shape=\"rect\">https:\/\/t.me\/MTProxybot<\/a>\u00a0\u83b7\u53d6\u4f60\u7684key<\/div>\n<div><\/div>\n<div>\u6b65\u9aa4\u5982\u4e0b\uff1a<\/div>\n<div><\/div>\n<div><span data-en-has-metadata=\"true\">\/start<\/span><\/div>\n<div>\u5f00\u542f\u548c\u673a\u5668\u4eba\u7684\u5bf9\u8bdd<\/div>\n<div><\/div>\n<div><span data-en-has-metadata=\"true\">\/newproxy<\/span><\/div>\n<div>\u5bf9\u8bdd\u6846\u8f93\u5165\u4f60\u7684vps\u5916\u90e8ip\u5730\u5740\u548c\u4f60\u60f3\u4f7f\u7528\u7684\u7aef\u53e3\u53f7<\/div>\n<div>\u4f8b\uff1a111.111.111.111:1234<\/div>\n<div><\/div>\n<div>\u63a5\u7740\u4f1a\u8981\u6c42\u4f60\u8f93\u5165\u4e00\u4e2a32\u4f4d\u7684\u5b57\u7b26\u4e32<\/div>\n<div>\u53ef\u4ee5\u5230<a href=\"https:\/\/www.cmd5.com\/\" shape=\"rect\">https:\/\/www.cmd5.com\/<\/a>\u00a0\u53bb\u968f\u673a\u751f\u6210\u4e00\u4e2aMD5<\/div>\n<div>\u53d1\u9001<\/div>\n<div><\/div>\n<div>\u673a\u5668\u4eba\u4f1a\u8fd4\u56de\u4e00\u5927\u4e32\u4e1c\u897f\u56de\u6765\uff0c\u4e0b\u56fe\u7ea2\u6846\u5185\u7684\u8fd9\u4e00\u4e32\uff0c\u53eb\u505aTAG\uff0c\u7a0d\u540e\u6709\u7528<\/div>\n<div><img decoding=\"async\" class=\"en-media en-media-image\" src=\"https:\/\/www.evernote.com\/shard\/s437\/sh\/6f06eeeb-9a4a-412d-ba07-606bb85a0741\/70a3cf4b8095212f3daa55966361f1f5\/res\/fafa7db0-1ae9-457a-908d-b823f063f98e\" data-hash=\"59e573600bf0ac202b5665db5555bbe3\" data-type=\"image\/jpeg\" data-url=\"https:\/\/www.evernote.com\/shard\/s437\/sh\/6f06eeeb-9a4a-412d-ba07-606bb85a0741\/70a3cf4b8095212f3daa55966361f1f5\/res\/fafa7db0-1ae9-457a-908d-b823f063f98e\" data-yjs-hook=\"en-resource\" data-reference=\"resource-1\" data-filename=\"photo_2020-03-15_22-36-00.jpg\" data-filesize=\"61982\" data-timestamp=\"1607950305770\" \/><\/div>\n<div><\/div>\n<div>3\uff1a\u6267\u884c<\/div>\n<div><span data-en-has-metadata=\"true\">docker run -d &#8211;network=host seriyps\/mtproto-proxy -p \u4f60\u8bbe\u7f6e\u7684\u7aef\u53e3\u53f7 -s \u4f60\u7684MD5\u00a0-t \u4f60\u7684TAG\u00a0-a dd -a tls<\/span><\/div>\n<div><span data-en-has-metadata=\"true\">\u00a0<\/span><\/div>\n<div><\/div>\n<div>\u7136\u540e\u8f93\u51fa\u4e00\u6bb5\u4e1c\u897f\uff0c\u590d\u5236\u6700\u540e\u4e00\u884c\u7684\u5b57\u7b26\u4e32<\/div>\n<div><\/div>\n<div>4\uff1a\u6267\u884c<\/div>\n<div><span data-en-has-metadata=\"true\">docker logs \u521a\u521a\u590d\u5236\u7684\u90a3\u4e00\u4e32\u5b57\u7b26<\/span><\/div>\n<div><\/div>\n<div><\/div>\n<div>5\uff1a\u590d\u5236\u8fd4\u56de\u7684\u6700\u540e\u4e00\u4e2ahttps\u5f00\u5934\u7684\u94fe\u63a5<\/div>\n<div><img decoding=\"async\" class=\"en-media en-media-image\" src=\"https:\/\/www.evernote.com\/shard\/s437\/sh\/6f06eeeb-9a4a-412d-ba07-606bb85a0741\/70a3cf4b8095212f3daa55966361f1f5\/res\/2be9b5ae-7858-49ed-a0fd-724499d102e2\" data-hash=\"f3d34ba63c77689aaedb6c5063432868\" data-type=\"image\/png\" data-url=\"https:\/\/www.evernote.com\/shard\/s437\/sh\/6f06eeeb-9a4a-412d-ba07-606bb85a0741\/70a3cf4b8095212f3daa55966361f1f5\/res\/2be9b5ae-7858-49ed-a0fd-724499d102e2\" data-yjs-hook=\"en-resource\" data-reference=\"resource-2\" data-filename=\"\" data-filesize=\"53157\" data-timestamp=\"1607950305770\" \/><\/div>\n<div><\/div>\n<div>\u5230TG\u4e2d\u968f\u4fbf\u4e00\u4e2a\u804a\u5929\u7a97\u53e3\u53d1\u9001\uff0c\u7136\u540e\u70b9\u51fb\u94fe\u63a5\uff0c\u5c31\u80fd\u4f7f\u7528\u4ee3\u7406\u4e86\u3002<\/div>\n<div><\/div>\n<div>\u4e00\u952e\u5b89\u88c5<\/div>\n<div>wget -N &#8211;no-check-certificate\u00a0<a href=\"https:\/\/github.com\/whunt1\/onekeymakemtg\/raw\/master\/mtproxy_go.sh\">https:\/\/github.com\/whunt1\/onekeymakemtg\/raw\/master\/mtproxy_go.sh<\/a>\u00a0&amp;&amp; chmod +x mtproxy_go.sh &amp;&amp; bash mtproxy_go.sh<\/div>\n<div><\/div>\n<div>\u5b8c\u6210<\/div>\n","protected":false},"excerpt":{"rendered":"<p>1\uff1a\u5b89\u88c5Docker ssh\u94fe\u63a5vps\uff0c\u8f93\u5165 sudo -i \u83b7\u53d6\u7ba1\u7406\u5458\u6743\u9650 1.1\u00a0\u5982\u679c\u5df2\u5b89\u88c5\u65e7\u7248\u672cdock&hellip; <a href=\"https:\/\/zoran.090702.xyz\/?p=38\" class=\"more-link\">\u7ee7\u7eed\u9605\u8bfb <span class=\"screen-reader-text\">\u8c37\u6b4c\u4e91\u5b89\u88c5docker\uff0c\u5b9e\u73b0\u7535\u62a5\u72ec\u7acb\u4ee3\u7406<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[],"class_list":["post-38","post","type-post","status-publish","format-standard","hentry","category-2"],"_links":{"self":[{"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=\/wp\/v2\/posts\/38","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=38"}],"version-history":[{"count":1,"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=\/wp\/v2\/posts\/38\/revisions"}],"predecessor-version":[{"id":39,"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=\/wp\/v2\/posts\/38\/revisions\/39"}],"wp:attachment":[{"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=38"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=38"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/zoran.090702.xyz\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=38"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}