{"id":55459,"date":"2020-04-03T05:46:14","date_gmt":"2020-04-02T21:46:14","guid":{"rendered":"http:\/\/4563.org\/?p=55459"},"modified":"2020-04-03T05:46:14","modified_gmt":"2020-04-02T21:46:14","slug":"%e6%b1%82centos-7%e4%b8%80%e9%94%ae%e5%ae%89%e8%a3%85docker%e8%84%9a%e6%9c%ac","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=55459","title":{"rendered":"\u6c42CentOS 7\u4e00\u952e\u5b89\u88c5Docker\u811a\u672c"},"content":{"rendered":"\n<p>  \t\t\t\t\t<strong>sun5025<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 17:02:43\t<\/p>\n<h3>\u6c42CentOS 7\u4e00\u952e\u5b89\u88c5Docker\u811a\u672c<\/h3>\n<p>  \t\t\u767e\u5ea6\u9c7c\u9f99\u6df7\u6742 \u5199\u4ec0\u4e48\u7684\u90fd\u6709 \u6211\u8fd8\u662f\u76f8\u4fe1\u8fd9\u91cc\u7684mjj\u4eec \u4e0a\u6b21\u7ed9\u6211\u7684Debian 9\u4e00\u952e\u811a\u672c\u5c31\u5f88\u597d\u7528<br \/>  \u4e0d\u77e5\u9053\u548cCentOS 7 \u901a\u7528\u5417\uff1f \u6c42CentOS 7\u4e00\u952e\u811a\u672c \u4e0d\u61c2\u5c31\u95ee \u54c8\u54c8:lol \t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>\u6211\u7684\u8fa3\u6587\u6700\u597d\u770b<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 17:08:12\t<\/p>\n<h3><\/h3>\n<p>  \t\tcurl -fsSL get.docker.com -o get-docker.sh<br \/>  sudo sh get-docker.sh<\/p>\n<p>  docker\u5bbf\u4e3b\u673a\u5efa\u8bae\u7528debian\u7cfb\u7684\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>h20<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 17:05:37\t<\/p>\n<h3><\/h3>\n<p>  \t\tyum install docker\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Function<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 17:06:24\t<\/p>\n<h3><\/h3>\n<p>  \t\tDocker\u4e0d\u662f\u5b98\u65b9\u4e5f\u57fa\u672c\u4e00\u952e\u4e48<\/p>\n<p>  https:\/\/mirrors.tuna.tsinghua.edu.cn\/help\/docker-ce\/\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>idmi<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 17:08:24\t<\/p>\n<h3><\/h3>\n<p>  \t\tFunction \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 17:06<br \/>  Docker\u4e0d\u662f\u5b98\u65b9\u4e5f\u57fa\u672c\u4e00\u952e\u4e48<\/p>\n<p>  https:\/\/mirrors.tuna.tsinghua.edu.cn\/help\/docker-ce\/<\/p>\n<p> \u5982\u4f55 SSH\u94fe\u63a5docker\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>wolfewong<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 17:08:46\t<\/p>\n<h3><\/h3>\n<p>  \t\tyum install -y yum-utils device-mapper-persistent-data lvm2<br \/>  yum-config-manager &#8211;add-repo https:\/\/download.docker.com\/linux\/centos\/docker-ce.repo<br \/>  yum install docker-ce docker-ce-cli containerd.io\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Function<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 17:12:14\t<\/p>\n<h3><\/h3>\n<p>  \t\tidmi \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 17:08<br \/>  \u5982\u4f55 SSH\u94fe\u63a5docker<\/p>\n<p> expose\u94fe\u63a5\u4e0d\u5c31\u884c\u4e86\u561b\uff0c\u6216\u8005docker -p\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>OPlin<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 17:19:30\t<\/p>\n<h3><\/h3>\n<p>  \t\t \u672c\u5e16\u6700\u540e\u7531 OPlin \u4e8e 2020-4-1 17:20 \u7f16\u8f91 <\/p>\n<p> wget -N &#8211;no-check-certificate https:\/\/raw.githubusercontent.com\/OPlincn\/xbtools\/master\/xbtools.sh &amp;&amp; bash xbtools.sh<br \/>  \u8f6f\u4ef6<br \/>  Docker\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>fmbfmb<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 17:19:43\t<\/p>\n<h3><\/h3>\n<p>  \t\tidmi \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 17:08<br \/>  \u5982\u4f55 SSH\u94fe\u63a5docker<\/p>\n<p> \u76f4\u63a5<br \/>  docker exec -it \u5bb9\u5668\u540d bash<br \/>  \u4e0d\u5c31\u884c\u4e86\u4e48\uff0c\u4e3a\u5565\u4e00\u5b9a\u8981ssh\t\t\t\t<\/p>\n<p>  \t\t\t\t\t<strong>Function<\/strong>  \t\t\t\t\u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 17:20:25\t<\/p>\n<h3><\/h3>\n<p>  \t\tfmbfmb \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2020-4-1 17:19<br \/>  \u76f4\u63a5<br \/>  docker exec -it \u5bb9\u5668\u540d bash<br \/>  \u4e0d\u5c31\u884c\u4e86\u4e48\uff0c\u4e3a\u5565\u4e00\u5b9a\u8981ssh<\/p>\n<p> \u4ed6\u53ef\u80fd\u662f\u8981\u8fdc\u7a0b\u5427\t\t\t  <\/p>\n","protected":false},"excerpt":{"rendered":"<p>sun5025 \u5927\u4f6c\u6709\u8bdd\u8bf4 : 2&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\/55459"}],"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=55459"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/55459\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=55459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=55459"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=55459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}