{"id":146036,"date":"2020-08-19T06:40:55","date_gmt":"2020-08-18T22:40:55","guid":{"rendered":"http:\/\/4563.org\/?p=146036"},"modified":"2020-08-19T06:40:55","modified_gmt":"2020-08-18T22:40:55","slug":"dokcer%e9%83%a8%e7%bd%b2%e4%b8%80%e4%b8%aavisual-studio-online%e5%90%8c%e6%ac%beweb%e7%89%88vs-code-code-server","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=146036","title":{"rendered":"Dokcer\u90e8\u7f72\u4e00\u4e2aVisual Studio Online\u540c\u6b3eWeb\u7248VS Code\u2014\u2014code-server"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>\u55f7\u55f7<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3>Dokcer\u90e8\u7f72\u4e00\u4e2aVisual Studio Online\u540c\u6b3eWeb\u7248VS Code\u2014\u2014code-server<\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 \u55f7\u55f7 \u4e8e 2020-8-17 18:27 \u7f16\u8f91 <\/p>\n<p> \u6210\u54c1\u9884\u89c8\uff1a<br \/>  https:\/\/developer-forum-online.cdn.bcebos.com\/8195a8f7-d2ab-45c1-ad6a-6183ddaef3d2.png<\/p>\n<p>  \u4e00\u3001\u5b89\u88c5Docker<\/p>\n<p>  \u5b89\u88c5\u811a\u672c\uff1a<\/p>\n<p>  \u5b98\u65b9\u6e90<br \/>  curl -fsSL https:\/\/get.docker.com | bash<br \/>  \u963f\u91cc\u4e91\u6e90<br \/>  curl -fsSL https:\/\/get.docker.com | bash -s docker &#8211;mirror Aliyun<\/p>\n<p>  \u5982\u679c\u8fd8\u6709\u914d\u7f6e\u5f00\u673a\u81ea\u542f\u3001\u914d\u7f6eDocker\u7528\u6237\u7ec4\u3001\u914d\u7f6e\u56fd\u5185\u955c\u50cf\u6e90\u4e4b\u7c7b\u7684\u66f4\u591a\u9700\u6c42\uff0c\u53ef\u89c1\u8fd9\u7bc7\u6587\u7ae0\uff1ahttps:\/\/haoduck.com\/239.html<\/p>\n<p>  \u4e8c\u3001\u90e8\u7f72code-server<\/p>\n<p>  \u547d\u4ee4\u8bf4\u660e\uff1a<br \/>  -dit \u540e\u53f0\u3001\u4ea4\u4e92\u5f0f\u7ec8\u7aef<br \/>  &#8211;name code-server \u8bbe\u7f6e\u5bb9\u5668\u540d\u4e3acode-server\uff0c\u53ef\u4ee5\u81ea\u884c\u8bbe\u7f6e<br \/>  &#8211;restart=always \u5bb9\u5668\u603b\u662f\u91cd\u542f(\u610f\u5916\u9000\u51fa\u3001\u91cd\u542f\u670d\u52a1\u5668\u90fd\u4f1a\u81ea\u52a8\u5f00\u542f)<br \/>  -p 8080:8080 \u6620\u5c04\u5bb9\u5668\u76848080\u7aef\u53e3\u5230\u5bbf\u4e3b\u673a8080\u7aef\u53e3\uff0c8443\u662fhttps\u7aef\u53e3\uff0c\u4f46\u8981\u914d\u7f6eSSL\u8bc1\u4e66\uff0c\u8fd9\u91cc\u5c31\u4e0d\u8bf4\u8fd9\u4e2a\u4e86<br \/>  -v &quot;$PWD:\/home\/coder\/project&quot; \u5f53\u524d\u76ee\u5f55($PWD)\u548c\u5bb9\u5668\u7684\/home\/coder\/project\u914d\u7f6e\u6570\u636e\u6301\u4e45\u5316\uff0c\u53ef\u4ee5\u81ea\u884c\u8bbe\u7f6e\u524d\u9762\u7684$PWD\u6539\u4e3a\u4f60\u60f3\u8981\u7684\u8def\u5f84<br \/>  -u &quot;$(id -u):$(id -g)&quot; \u8bbe\u7f6e\u5bb9\u5668\u7528\u6237<br \/>  -e PASSWORD=&#8217;123456&#8242; \u8bbe\u7f6e\u5bc6\u7801\u4e3a123456<\/p>\n<p>  docker run -dit &#8211;name code-server <br \/>  &nbsp; &nbsp; &#8211;restart=always <br \/>  &nbsp; &nbsp; -p 8080:8080 <br \/>  &nbsp; &nbsp; -v &quot;$PWD:\/home\/coder\/project&quot; <br \/>  &nbsp; &nbsp; -u &quot;$(id -u):$(id -g)&quot; <br \/>  &nbsp; &nbsp; -e PASSWORD=&#8217;123456&#8242; <br \/>  &nbsp; &nbsp; codercom\/code-server:latest<\/p>\n<p>  \u8fd0\u884c\u5b8c\u6210\uff0c\u5c31\u53ef\u4ee5\u901a\u8fc7IP:8080\u8bbf\u95ee<\/p>\n<p>  \u9996\u5148\u4f1a\u9700\u8981\u4f60\u8f93\u5165\u5bc6\u7801\uff0c\u4e5f\u5c31\u662f\u4e0a\u9762Docker\u90e8\u7f72\u7684\u65f6\u5019\u8bbe\u7f6e\u7684<\/p>\n<p>  https:\/\/developer-forum-online.cdn.bcebos.com\/1b777ef3-da67-4528-ab86-c69d8f9bdc67.jpg<\/p>\n<p>  \u4e09\u3001\u914d\u7f6e\u4e2d\u6587<\/p>\n<p>  \u548cVS Code\u5ba2\u6237\u7aef\u4e2d\u7684\u65b9\u6cd5\u662f\u4e00\u6837\u7684<\/p>\n<p>  \u6309\u56fe\u6240\u793a\uff0c\u70b9\u51fb\u6269\u5c55\u6309\u94ae(\u6216Ctrl+Shift+X)<\/p>\n<p>  \u8f93\u5165\u6846\u8f93\u5165 chinese<\/p>\n<p>  \u627e\u5230\u7b80\u4f53\u4e2d\u6587\u70b9\u51fbinstall<\/p>\n<p>  https:\/\/developer-forum-online.cdn.bcebos.com\/dc797016-1f0e-46c3-899c-efe5a47a1a3a.jpg<\/p>\n<p>  \u5b89\u88c5\u5b8c\u6bd5\u53f3\u4e0b\u89d2\u4f1a\u6709\u4e00\u4e2a\u5f39\u7a97\uff0c\u63d0\u793a\u662f\u5426\u8981\u5c06\u8bed\u8a00\u6362\u6210\u7b80\u4f53\u4e2d\u6587\u5e76\u91cd\u542f\uff0c\u70b9\u51fbyes<\/p>\n<p>  https:\/\/developer-forum-online.cdn.bcebos.com\/221ee360-d61c-4e57-ac1a-5ff50dadc2d1.jpg<\/p>\n<p>  \u63a5\u7740\uff0c\u5c31\u53ef\u4ee5\u6109\u5feb\u7684\u73a9\u800d\u4e86<\/p>\n<p>  \u5982\u679c\u4f60\u662f\u5c06\u5176\u90e8\u7f72\u5728\u4e00\u4e2a\u6709\u516c\u7f51\u7684\u73af\u5883\u4e0b\uff0c\u90a3\u4e48\u4f60\u5728\u4efb\u4f55\u6709\u7f51\u7edc\u7684\u5730\u65b9\u90fd\u53ef\u4ee5\u4f7f\u7528\u8fd9\u4e2aWeb\u7248VS Code\u4e86<\/p>\n<p>  \u611f\u89c9\u5f88\u8d5e\u3002\u4e0d\u59a8\u8bd5\u8bd5\u770b<\/p>\n<p>  \u5176\u4ed6<\/p>\n<p>  \u5982\u679c\u4f60\u5e76\u4e0d\u60f3\u4f7f\u7528Docker\u7684\u65b9\u5f0f\u90e8\u7f72\uff0c\u6216\u8005\u8fd8\u60f3\u4e86\u89e3\u66f4\u591a\u3002\u8bf7\u67e5\u770bGithub\u9879\u76ee\u5730\u5740\uff1ahttps:\/\/github.com\/cdr\/code-server<\/p>\n<p>  IP+1<\/p>\n<p>  \u5982\u679c\u89c9\u5f97\u672c\u6587\u6709\u7528\uff0c\u8bf7\u5e2e\u6211IP+1\uff0c\u8c22\u8c22<br \/>  https:\/\/haoduck.com\/556.html<\/p>\n<p>  \t\t\t\t\t<strong>\u7231\u56e0\u65af\u5766<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tip+1\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u4e0d\u7720\u98de\u884c<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tdocker\u90fd\u8981\u4e0d\u80fd\u7528\u4e86\u54e6\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>larry<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tdocker\u5df2\u7ecf\u88abcentos\u5e9f\u5f03\u4e86\u54e6\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>liucent<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u8fd9\u4e2a\u662ftheia\uff1f\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>m77<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u5f3a\u554a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u55f7\u55f7<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tliucent \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-8-17 18:36<br \/>  \u8fd9\u4e2a\u662ftheia\uff1f<\/p>\n<p> \u4e0d\u662f\u5427\uff0ccode-server\uff1ahttps:\/\/github.com\/cdr\/code-server\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u98ce\u94c3<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tlarry \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-8-17 18:35<br \/>  docker\u5df2\u7ecf\u88abcentos\u5e9f\u5f03\u4e86\u54e6<\/p>\n<p> \u54ea\u91cc\u7684\u8c23\u8a00\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>ljm4216<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\t\u597d\u5bb6\u4f19\u9876\u4e00\u4e2a\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Function<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : \t<\/p>\n<h3><\/h3>\n<p>  \t\tlarry \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-8-17 18:35<br \/>  docker\u5df2\u7ecf\u88abcentos\u5e9f\u5f03\u4e86\u54e6<\/p>\n<p> \u5565\u60c5\u51b5\uff0cRedHat\u7cfb\u8bf4\u8fd9\u4e2a\u4e86\uff1f\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u55f7\u55f7 \u5927\u4f6c\u6709\u8bdd\u8bf4 : Dokcer&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/146036"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=146036"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/146036\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=146036"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=146036"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=146036"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}