{"id":136,"date":"2015-08-24T11:18:07","date_gmt":"2015-08-24T03:18:07","guid":{"rendered":"https:\/\/drho.club\/?p=136"},"modified":"2015-08-24T11:18:07","modified_gmt":"2015-08-24T03:18:07","slug":"centos-docker-installation","status":"publish","type":"post","link":"https:\/\/104.es\/index.php\/2015\/08\/24\/centos-docker-installation\/","title":{"rendered":"\u5728CentOS\u7cfb\u7d71\u4e2d\u5b89\u88ddDocker"},"content":{"rendered":"<p>\u5c31\u7b97\u4f60\u662f\u4f7f\u7528Windows\u6216\u662fMacOS\uff0c\u7b46\u8005\u4e5f\u662f\u5efa\u8b70\u4f60\u5982\u679c\u8981\u4f7f\u7528Docker\u7684\u8a71\uff0c\u9084\u662f\u5148\u5229\u7528\u6211\u5011\u5728\u524d\u4e00\u7bc7\u6587\u7ae0\u4e2d\u6240\u4ecb\u7d39\u7684VirtualBox\u5efa\u7acb\u4e00\u500bLinux\uff08\u4e0d\u7ba1\u662fCentOS\u6216Ubuntu\u5747\u53ef\uff09\u865b\u64ec\u6a5f\uff0c\u7136\u5f8c\u5728\u8a72\u865b\u64ec\u6a5f\u4e0a\u5b89\u88ddDocker\uff0c\u4f60\u6240\u9047\u5230\u7684\u9ebb\u7169\u4e8b\u6703\u5c11\u4e00\u4e9b\u3002<\/p>\n<p>\u6211\u5011\u5047\u8a2d\u4f60\u5df2\u7d93\u5b89\u88dd\u597dCentOS\u4e86\uff0c\u90a3\u9ebc\u5b89\u88ddDocker\u7684\u6b65\u9a5f\u5c31\u8b8a\u5f97\u975e\u5e38\u7c21\u55ae\uff0c\u53ea\u6709\u4ee5\u4e0b\u77ed\u77ed\u7684\u6578\u884c\u6307\u4ee4\uff08\u8acb\u5728root\u7684\u6b0a\u9650\u4e0b\u57f7\u884c\uff09\uff1a<\/p>\n<p>[code]<br \/>\n#yum -y update<br \/>\n#curl -sSL https:\/\/get.docker.com\/ | sh<br \/>\n#service docker start<br \/>\n[\/code]<\/p>\n<p>\u5c31\u91ac\uff0c\u5b8c\u6210\u641e\u5b9a\uff01<\/p>\n<p>\u5982\u679c\u767c\u73fedocker\u7684\u670d\u52d9\u6c92\u8fa6\u6cd5\u555f\u52d5\uff0c\u90a3\u80af\u5b9a\u662fSELINUX\u5728\u505a\u602a\uff0c\u53ea\u8981\u628aSELINUX\u53d6\u6d88\u5373\u53ef\u3002\u53d6\u6d88SELINUX\u7684\u65b9\u6cd5\u5982\u4e0b\uff1a<\/p>\n<p>[code]<br \/>\n#vi \/etc\/sysconfig\/selinux<br \/>\n[\/code]<\/p>\n<p>\u628aSELINUX\u7684\u9805\u76ee\u8a2d\u5b9a\u70badisabled\u5373\u53ef\u3002\u8a18\u5f97\u8981\u91cd\u65b0\u958b\u6a5f\u624d\u6703\u751f\u6548\u5594\u3002\u60a8\u53ef\u4ee5\u900f\u904e\u6307\u4ee4 sestatus\u67e5\u8a62SELINUX\u7684\u8a2d\u5b9a\u3002\u90a3\u5982\u4f55\u8b93CentOS\u5728\u91cd\u65b0\u958b\u6a5f\u6642\u4e5f\u6703\u7acb\u5373\u57f7\u884cDocker\u7684Daemon\u5462\uff1f\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<p>[code]<br \/>\n#chkconfig docker on<br \/>\n[\/code]<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5c31\u7b97\u4f60\u662f\u4f7f\u7528Windows\u6216\u662fMacOS\uff0c\u7b46\u8005\u4e5f\u662f\u5efa\u8b70\u4f60\u5982\u679c\u8981\u4f7f\u7528Docker\u7684\u8a71\uff0c\u9084\u662f\u5148\u5229\u7528\u6211\u5011\u5728\u524d\u4e00\u7bc7\u6587\u7ae0\u4e2d\u6240\u4ecb\u7d39\u7684VirtualBox\u5efa\u7acb\u4e00\u500bLinux\uff08\u4e0d\u7ba1\u662fCentOS\u6216Ubuntu\u5747\u53ef\uff09\u865b\u64ec\u6a5f\uff0c\u7136\u5f8c\u5728\u8a72\u865b\u64ec\u6a5f\u4e0a\u5b89\u88ddDocker\uff0c\u4f60\u6240\u9047\u5230\u7684\u9ebb\u7169\u4e8b\u6703\u5c11\u4e00\u4e9b\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[7],"tags":[118],"class_list":["post-136","post","type-post","status-publish","format-standard","hentry","category-docker","tag-centos-docker"],"jetpack_featured_media_url":"","jetpack-related-posts":[],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/136","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/comments?post=136"}],"version-history":[{"count":0,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/posts\/136\/revisions"}],"wp:attachment":[{"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/media?parent=136"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/categories?post=136"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/104.es\/index.php\/wp-json\/wp\/v2\/tags?post=136"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}