{"id":492,"date":"2023-09-14T08:33:44","date_gmt":"2023-09-14T00:33:44","guid":{"rendered":"https:\/\/word.lalalala.buzz\/?p=492"},"modified":"2023-10-08T11:00:07","modified_gmt":"2023-10-08T03:00:07","slug":"docker%e5%ae%89%e8%a3%85v2ray","status":"publish","type":"post","link":"https:\/\/blog.nodesee.com\/?p=492","title":{"rendered":"docker\u5b89\u88c5v2ray"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\" id=\"\u83b7\u53d6\u955c\u50cf\">\u83b7\u53d6\u955c\u50cf<a href=\"https:\/\/v2raya.org\/docs\/prologue\/installation\/docker\/#%E8%8E%B7%E5%8F%96%E9%95%9C%E5%83%8F\"><\/a><\/h3>\n\n\n\n<p>\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\"><div class=\"text codecolorer\">docker pull mzz2017\/v2raya<\/div><\/div>\n\n<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"\u8fd0\u884c\">\u8fd0\u884c<a href=\"https:\/\/v2raya.org\/docs\/prologue\/installation\/docker\/#%E8%BF%90%E8%A1%8C\"><\/a><\/h3>\n\n\n\n<p>\u505c\u6b62\u6b63\u5728\u8fd0\u884c\u7684\u7248\u672c\uff08\u5982\u679c\u5b58\u5728\uff09\uff1a\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\"><div class=\"text codecolorer\">docker container stop v2raya docker container rm v2raya<\/div><\/div>\n\n<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\"><div class=\"text codecolorer\"># run v2raya<br \/>\ndocker run -d \\<br \/>\n&nbsp; --restart=always \\<br \/>\n&nbsp; --privileged \\<br \/>\n&nbsp; --network=host \\<br \/>\n&nbsp; --name v2raya \\<br \/>\n&nbsp; -e V2RAYA_LOG_FILE=\/tmp\/v2raya.log \\<br \/>\n&nbsp; -v \/lib\/modules:\/lib\/modules:ro \\<br \/>\n&nbsp; -v \/etc\/resolv.conf:\/etc\/resolv.conf \\<br \/>\n&nbsp; -v \/etc\/v2raya:\/etc\/v2raya \\<br \/>\n&nbsp; mzz2017\/v2raya<\/div><\/div>\n\n<\/pre>\n\n\n\n<p>\u5982\u679c\u4f60\u4f7f\u7528 MacOSX \u6216\u5176\u4ed6\u4e0d\u652f\u6301 host \u6a21\u5f0f\u7684\u73af\u5883\uff0c\u5728\u8be5\u60c5\u51b5\u4e0b<strong>\u65e0\u6cd5\u4f7f\u7528\u5168\u5c40\u900f\u660e\u4ee3\u7406<\/strong>\uff0c\u6216\u8005\u4f60\u4e0d\u5e0c\u671b\u4f7f\u7528\u5168\u5c40\u900f\u660e\u4ee3\u7406\uff0cdocker \u547d\u4ee4\u4f1a\u7565\u6709\u4e0d\u540c\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\">\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\"><div class=\"text codecolorer\">&lt;span class=&quot;hljs-comment&quot; style=&quot;box-sizing: border-box; color: rgb(136, 136, 136); font-family: sfmono-regular, menlo, monaco, consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; text-wrap: nowrap;&quot;&gt;# run v2raya&lt;\/span&gt;&lt;span style=&quot;color: rgb(29, 45, 53); font-family: sfmono-regular, menlo, monaco, consolas, &amp;quot;Liberation Mono&amp;quot;, &amp;quot;Courier New&amp;quot;, monospace; font-size: 14px; text-wrap: nowrap; background-color: rgb(251, 247, 240);&quot;&gt;<br \/>\ndocker run -d \\<br \/>\n&nbsp; -p 2017:2017 \\<br \/>\n&nbsp; -p 20170-20172:20170-20172 \\<br \/>\n&nbsp; --restart=always \\<br \/>\n&nbsp; --name v2raya \\<br \/>\n&nbsp; -e V2RAYA_LOG_FILE=\/tmp\/v2raya.log \\<br \/>\n&nbsp; -v \/etc\/v2raya:\/etc\/v2raya \\<br \/>\n&nbsp; mzz2017\/v2raya&lt;\/span&gt;<\/div><\/div>\n\n<\/pre>\n\n\n\n<p>\u67e5\u770b\u72b6\u6001\uff1a\n\n<div class=\"codecolorer-container text default\" style=\"overflow:auto;white-space:nowrap;width:435px;\"><div class=\"text codecolorer\">docker container stats v2raya<\/div><\/div>\n\n<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u83b7\u53d6\u955c\u50cf docker pull mzz2017\/ &hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-492","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=\/wp\/v2\/posts\/492","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=492"}],"version-history":[{"count":4,"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=\/wp\/v2\/posts\/492\/revisions"}],"predecessor-version":[{"id":501,"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=\/wp\/v2\/posts\/492\/revisions\/501"}],"wp:attachment":[{"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=492"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=492"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.nodesee.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=492"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}